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 πŸ”₯


SystemTap Tapset Reference Ver β€” September 2026 πŸ—“οΈ that's the version and date, periodt πŸ’… slay, now go log responsibly, mwah πŸ«ΆπŸ’–πŸŒˆ

πŸ“¦ where this page comes from