mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Improved error message
This commit is contained in:
parent
7ec3579a2d
commit
b8fd053bc3
@ -40,7 +40,7 @@ class FunctionDeclaration extends Node {
|
||||
codegen.write(param);
|
||||
} else {
|
||||
if (param.type !== 'Identifier') {
|
||||
throw new Error('Illegal param: ' + param);
|
||||
throw new Error('Illegal param ' + JSON.stringify(param) + ' for FunctionDeclaration: ' + JSON.stringify(this));
|
||||
}
|
||||
codegen.generateCode(param);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user