Commit a24309d3 a24309d33c099529e5d4dc7c523b8a7a61ae787b by Nicolas Perriault

refs #99, check for a valid sourceId on error

1 parent 8f373880
......@@ -192,6 +192,7 @@ phantom.loadCasper = function loadCasper() {
* @param Function callback An optional callback
*/
phantom.processScriptError = function processScriptError(error, file, callback) {
console.log(error, file, callback)
if (error.sourceId && !this.sourceIds.hasOwnProperty(error.sourceId)) {
this.sourceIds[error.sourceId] = file;
}
......