Skip to content

Commit

Permalink
artiq_flash: clear error message when bin directory is absent
Browse files Browse the repository at this point in the history
sbourdeauducq committed Apr 5, 2016
1 parent 7081a11 commit 4f589a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions artiq/frontend/artiq_flash.py
Original file line number Diff line number Diff line change
@@ -72,6 +72,9 @@ def main():
if opts.dir is None:
opts.dir = os.path.join(artiq_dir, "binaries",
"{}-{}".format(opts.target, opts.adapter))
if not os.path.exists(opts.dir):
raise SystemExit("Binaries directory '{}' does not exist"
.format(opts.dir))

conv = False

0 comments on commit 4f589a7

Please sign in to comment.