forked from M-Labs/artiq
artiq_flash: clear error message when bin directory is absent
This commit is contained in:
parent
7081a11db6
commit
4f589a7277
|
@ -72,6 +72,9 @@ def main():
|
||||||
if opts.dir is None:
|
if opts.dir is None:
|
||||||
opts.dir = os.path.join(artiq_dir, "binaries",
|
opts.dir = os.path.join(artiq_dir, "binaries",
|
||||||
"{}-{}".format(opts.target, opts.adapter))
|
"{}-{}".format(opts.target, opts.adapter))
|
||||||
|
if not os.path.exists(opts.dir):
|
||||||
|
raise SystemExit("Binaries directory '{}' does not exist"
|
||||||
|
.format(opts.dir))
|
||||||
|
|
||||||
conv = False
|
conv = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue