Ind.ie is now Small Technology Foundation.
Commit 77eec456 authored by Aral Balkan's avatar Aral Balkan

Update error info on inspection failure in inquiry

parent 17a6a393
...@@ -82,7 +82,12 @@ class HTTPArchive ...@@ -82,7 +82,12 @@ class HTTPArchive
'height': 667, # … 'height': 667, # …
'postHook': allowGraceTime # Allow grace period after document load event 'postHook': allowGraceTime # Allow grace period after document load event
}) })
.on 'fail', reject .on 'fail', (url, err, index, urls) ->
error = new Error()
error.name = "HAR capture failed"
error.message = "#{url} failed with error #{err}"
console.log error
reject (error)
.on 'har', (har) -> resolve har .on 'har', (har) -> resolve har
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment