Răsfoiți Sursa

added url into error message when downloading from filestore

Henry Oswald 12 ani în urmă
părinte
comite
3e4cfc5ba9
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      services/clsi/app/coffee/UrlFetcher.coffee

+ 2 - 2
services/clsi/app/coffee/UrlFetcher.coffee

@@ -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()