cgi_neo_error(3)

πŸ’– cgi_neo_error(3) πŸ’–

okay bestie, so we're in the cgi/cgi.h zone of the ClearSilver cinematic universe, and today's main character is cgi_neo_error β€” the girl who spills the tea on your NEOERR drama by literally printing the whole backtrace. it's giving "call the manager, but make it a 500." 🫢


✨ NAME ✨

cgi_neo_error β€” display a NEOERR call backtrace πŸ’…


🌸 SYNOPSIS 🌸

#include <cgi/cgi.h>

void cgi_neo_error (CGI *cgi, NEOERR *err);

πŸŽ€ ARGUMENTS πŸŽ€

  • cgi β€” a pointer to a CGI struct. that's the whole vibe, just a pointer to your CGI struct ✨
  • err β€” a NEOERR. the deets live over in util/neo_err.h, so go peek there if you need the lore 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? cgi_neo_error will output a 500 error containing the NEOERR call backtrace. like, the receipts. the full paper trail. every step of how your code got here, on display, no cap 😭

⚠️ heads up though: this function is likely to be removed from future versions in favor of some sort of user error mechanism. so don't get too attached, she's on her way out. love her while she's here πŸ’€

⭐ RETURN VALUE ⭐

None. she gives you nothing back, she just says things. iconic behavior, honestly πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, fr fr:


and that's the whole page, bestie!! this one came straight from the ClearSilver girlies, dated 12 July 2007, and yes the header and footer both say cgi_neo_error(3) because she's consistent like that. mwah πŸ’‹βœ¨