File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ data Error
107
107
| ResponseBodyError ForeignError (Response Foreign )
108
108
| TimeoutError
109
109
| RequestFailedError
110
+ | BadUrlError String
110
111
| XHROtherError Exn.Error
111
112
112
113
printError :: Error -> String
@@ -119,6 +120,8 @@ printError = case _ of
119
120
" There was a problem making the request: timeout"
120
121
RequestFailedError ->
121
122
" There was a problem making the request: request failed"
123
+ BadUrlError url ->
124
+ " There was a problem with the url: " <> url
122
125
XHROtherError err ->
123
126
" There was a problem making the request: " <> Exn .message err
124
127
@@ -215,6 +218,8 @@ request driver req =
215
218
TimeoutError
216
219
else if message == requestFailedMessageIdent then
217
220
RequestFailedError
221
+ else if message == " Request path contains unescaped characters" then
222
+ BadUrlError req.url
218
223
else
219
224
XHROtherError err
220
225
You can’t perform that action at this time.
0 commit comments