Change exit code and error message

This commit is contained in:
matthew
2017-11-13 20:39:44 -08:00
parent c1a7d52fdc
commit 86c79dec0a

4
emsdk
View File

@@ -488,9 +488,9 @@ def download_file(url, dstpath, download_even_if_exists=False, filename_prefix =
rmfile(file_name) rmfile(file_name)
return None return None
except KeyboardInterrupt as e: except KeyboardInterrupt as e:
print("Received Interrupt, exiting") print("Aborted by User, exiting")
rmfile(file_name) rmfile(file_name)
exit(0) exit(1)
return file_name return file_name
def download_text_file(url, dstpath, download_even_if_exists=False, filename_prefix=''): def download_text_file(url, dstpath, download_even_if_exists=False, filename_prefix=''):