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
7081a11db6
commit
4f589a7277
|
@ -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