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 10, 2024
1 parent 47126b2 commit db82798
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 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
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ERROR: [file-path]: Error executing a python function in <code>:
# [multiline-error-info]
# Exception: TypeError: [error-reason]
python() {
'2' + 2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# NOTE:
# Some error lines start with 'Parsing recipes...' but sometimes these words appear on a different line than the ones with 'ERROR:'
# Hence do not use '^Parsing recipes...' as part of the regex

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

0 comments on commit db82798

Please sign in to comment.