mirror of https://github.com/m-labs/artiq.git
artiq_flash: clear error message when bin directory is absent
This commit is contained in:
parent
ed1c368e73
commit
1ff01a43ff
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue