Better error message for broken JSON
This commit is contained in:
parent
50474dff1f
commit
d21cc1912c
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ if (!JSON)
|
|||
}
|
||||
|
||||
// If the text is not JSON parseable, then a SyntaxError is thrown.
|
||||
throw new SyntaxError('JSON.parse');
|
||||
throw new SyntaxError('JSON.parse: ' + text);
|
||||
};
|
||||
}
|
||||
}());
|
||||
|
|
Loading…
Reference in a new issue