1
0
mirror of https://github.com/videojs/video.js.git synced 2025-03-03 15:12:49 +02:00

Adding more detail to JSON.parse() error

This commit is contained in:
Jonathan Gold 2013-03-19 17:32:44 -07:00
parent 610974854c
commit c71203bd56

View File

@ -64,6 +64,6 @@ if (typeof window.JSON !== 'undefined' && window.JSON.parse === 'function') {
walk({'': j}, '') : j;
}
throw new SyntaxError('JSON.parse');
throw new SyntaxError('JSON.parse(): invalid or malformed JSON data');
};
}