mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:33:27 +00:00
added url into error message when downloading from filestore
This commit is contained in:
parent
8d337a26db
commit
3e4cfc5ba9
1 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@ module.exports = UrlFetcher =
|
|||
if res.statusCode >= 200 and res.statusCode < 300
|
||||
urlStream.pipe(fileStream)
|
||||
else
|
||||
callbackOnce(new Error("URL returned non-success status code: #{res.statusCode}"))
|
||||
callbackOnce(new Error("URL returned non-success status code: #{res.statusCode} #{url}"))
|
||||
|
||||
urlStream.on "error", (error) ->
|
||||
callbackOnce(error or new Error("Something went wrong downloading the URL"))
|
||||
callbackOnce(error or new Error("Something went wrong downloading the URL #{url}"))
|
||||
|
||||
urlStream.on "end", () ->
|
||||
callbackOnce()
|
||||
|
|
Loading…
Reference in a new issue