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() { ...@@ -192,6 +192,7 @@ phantom.loadCasper = function loadCasper() {
192 * @param Function callback An optional callback 192 * @param Function callback An optional callback
193 */ 193 */
194 phantom.processScriptError = function processScriptError(error, file, callback) { 194 phantom.processScriptError = function processScriptError(error, file, callback) {
195 console.log(error, file, callback)
195 if (error.sourceId && !this.sourceIds.hasOwnProperty(error.sourceId)) { 196 if (error.sourceId && !this.sourceIds.hasOwnProperty(error.sourceId)) {
196 this.sourceIds[error.sourceId] = file; 197 this.sourceIds[error.sourceId] = file;
197 } 198 }
......