FUNCTION::ERROR(3stap)
β¨ FUNCTION::ERROR β¨ (3stap)
okay bestie, we're in the Logging Tapset manual and today's main character is function::error π
πΈ NAME πΈ
function::error β bestie, it sends an error message. that's it, that's the job π
π SYNOPSIS π
error(msg:string)
π¦ ARGUMENTS π¦
msgβ the formatted message string, aka the lil text you want to scream into the void π«Ά
π DESCRIPTION π
okay so here's the tea β: an implicit end-of-line gets added for you, so don't stress about newlines, she's handled β¨
staprun also prepends the string βERROR:β to your message, so it shows up looking all official π
β οΈ and now the serious part, bestie, because this one is not a vibe: sending an error message aborts the currently running probe. like, it literally ends it, no cap π
depending on the MAXERRORS parameter, it may also trigger an exit π so yeah, this is highkey a big deal.
π₯ SEE ALSO π₯
tapset::logging(3stap)β go read this one too, iykyk ππ
SystemTap Tapset Reference Ver β September 2026 ποΈ that's the version and date, periodt π slay, now go log responsibly, mwah π«Άππ
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms