mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-29 09:01:04 -05:00
feat: show python syntax-error message if a NameError occurs (#63085)
This commit is contained in:
committed by
GitHub
parent
7652afbe0f
commit
77ea476f12
@@ -222,7 +222,11 @@ export function* executeTests(testRunner, tests, testTimeout = 5000) {
|
||||
newTest.stack = stack;
|
||||
}
|
||||
|
||||
if (type === 'IndentationError' || type === 'SyntaxError') {
|
||||
if (
|
||||
type === 'IndentationError' ||
|
||||
type === 'SyntaxError' ||
|
||||
type === 'NameError'
|
||||
) {
|
||||
const msgKey =
|
||||
type === 'IndentationError'
|
||||
? 'learn.indentation-error'
|
||||
|
||||
Reference in New Issue
Block a user