11

I was wondering whether it is OK to use "errored out" as part of a status message in my code — is it grammatically correct to use it, or is there a better choice of words that I can use in its place?

RegDwigнt
  • 97,231
TCSGrad
  • 1,724

1 Answers1

7

"Errored out" is grammatically correct (errored is the simple past and past participle of error) but it's relatively new, not very commonly used and may still be considered slang, so I'd advise against using it.

Depending on your actual context, use something else such as "Encountered an error at line 20", or simply just "Error: line 20".

See also this related question: Is “errored” correct usage?

Hugo
  • 67,535