Closed miha-plesko closed 7 years ago
Error should be printed, yes.
In addition, maybe whole VM should shutdown.
If I try run.py -e '/zpool.so list; asdf; /zpool.so list'
, then I get:
...
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
osv 9.94G 7.91M 9.93G 0% 1.00x ONLINE -
Failed to load object: asdf. Powering off.
Also, if I try -e "runscript /empty-file; /cli/cli.so", then I think that cli.so should be started (right now, this fails).
Simple scripts can be run using
runscript <path>
program that was introduced with this commit. Unfortunately, if we pass invalid path to the program, it does not complain; OSv just hangs forever:Would it be possible to print a message like
ERROR: runscript could not find script /i/do/not/exist
?/cc @justinc1