Commit 411b7b0d authored by maruel@chromium.org's avatar maruel@chromium.org

Print the exact path get_file.js is trying to write to when failing.

Clean up stray spaces.

TBR=iannucci@chromium.org
BUG=241769

Review URL: https://codereview.chromium.org/72783002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235145 0039d316-1c4b-4281-b951-d872f2087c98
parent 741cf9bb
...@@ -64,8 +64,9 @@ function Download(url, path, verbose) { ...@@ -64,8 +64,9 @@ function Download(url, path, verbose) {
adodb_stream.SaveToFile(path, 2); // Save to our destination adodb_stream.SaveToFile(path, 2); // Save to our destination
adodb_stream.Close(); adodb_stream.Close();
} catch(e) { } catch(e) {
WScript.StdOut.WriteLine("[-] ADODB.Stream " + new Number( WScript.StdOut.WriteLine(
e.number).toHex() + ": Cannot save file (" + e.description + ")"); "[-] ADODB.Stream " + new Number(e.number).toHex() +
": Cannot save file to " + path + ": " + e.description);
WScript.Quit(1); WScript.Quit(1);
} }
if (typeof(file_size) != undefined) { if (typeof(file_size) != undefined) {
......
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