tools/mpremote: Print a nicer error when a filesystem command fails.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
7d3f4b23dc
commit
858707181d
|
@ -354,9 +354,13 @@ def do_filesystem(pyb, args):
|
|||
verbose=verbose,
|
||||
)
|
||||
else:
|
||||
try:
|
||||
pyboard.filesystem_command(
|
||||
pyb, fs_args, progress_callback=show_progress_bar, verbose=verbose
|
||||
)
|
||||
except OSError as er:
|
||||
print(f"{_PROG}: {er}")
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def do_edit(pyb, args):
|
||||
|
|
Loading…
Reference in New Issue