Skip to content

Commit

Permalink
Chore: Keep records of error code and its corresponding output messages
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Jan 9, 2024
1 parent 47126b2 commit 6faa731
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# NOTE:
# Some error lines start with 'Parsing recipes...' but sometimes these words appear on a different line than the ones with 'ERROR:'
# Henc do not use '^Parsing recipes...' as part of the regex

# ERROR: ParseError at [file-path]:[line-number]: unparsed line: 'undefinedvariable'
undefinedvariable

# ERROR: [file-path]: Error in compiling python function in [file-path], line [line-number]:
# [multiline-error-info]
# SyntaxError: [error-reason] ([file-name], line [line-number])
python() {
garbage(code
}

# ERROR: [file-path]: Error executing a python function in <code>:
# [multiline-error-info]
# Exception: TypeError: [error-reason]
python() {
'2' + 2
}

# WARNING: [file-path]: Error during finalise of [file-path]
# ERROR: Unable to parse [file-path]
# [multiline-error-info]
# SyntaxError: [error-reason]
python do_compile() {
garbage(code
}

0 comments on commit 6faa731

Please sign in to comment.