Skip to content

Commit

Permalink
Bail on missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Jan 5, 2020
1 parent 70aef1b commit 3763792
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions firmware/createInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,13 @@ def handleCp(source, dest):
copymode(source, dest)
except FileNotFoundError:
print("ERROR: File not found: {0} does not exist.".format(source))
sys.exit(1)
except IOError:
print("ERROR: Unable to write file {0}.".format(dest))
sys.exit(1)
except:
print("ERROR: Unhandled error copying {0}".format(firmware))
sys.exit(1)


def copyFiles():
Expand Down

0 comments on commit 3763792

Please sign in to comment.