1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00

Add an error message if rustc is not installed

This commit is contained in:
Andy Hayden 2018-08-18 18:31:32 -07:00 committed by Ryan Dahl
parent 2d6cb9024e
commit 146bc93b81

View file

@ -118,6 +118,11 @@ def main():
argsfile_content = os.read(argsfile_fd, argsfile_size) argsfile_content = os.read(argsfile_fd, argsfile_size)
args = argsfile_content.split("\n") args = argsfile_content.split("\n")
except OSError as e: # Note: in python 3 this will be a FileNotFoundError.
print "Error executing rustc command (is rust installed?):"
print " ".join(rustc_cmd) + "\n"
raise e
finally: finally:
# Close and delete the temporary file. # Close and delete the temporary file.
os.close(argsfile_fd) os.close(argsfile_fd)