We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ccbfe5 + a0ecc7c commit 8fbf208Copy full SHA for 8fbf208
src/Network/HTTP/Affjax.purs
@@ -161,7 +161,7 @@ foreign import unsafeAjax
161
}
162
163
xhr.onerror = function (err) {
164
- errback(err)();
+ errback(new Error("AJAX request failed: " + options.method + " " + options.url))();
165
};
166
xhr.onload = function () {
167
callback({
test/Main.purs
@@ -34,3 +34,6 @@ main = launchAff $ do
34
35
res <- attempt $ get "/arrayview"
36
liftEff $ either traceAny (traceAny :: AffjaxResponse Foreign -> _) res
37
+
38
+ res <- attempt $ get "ttp://www.google.com"
39
+ liftEff $ either traceAny (traceAny :: AffjaxResponse Foreign -> _) res
0 commit comments