mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 13:26:27 +00:00
tool/run: exit gracefully if depot/create failed
With --depot-auto-update enabled, the run tool calls the depot/create tool, which in principle may fail. In this case, print a diagnostic info instead of a backtrace. Issue #5379
This commit is contained in:
parent
1f225b4b6f
commit
7fb702a0d9
@ -233,7 +233,10 @@ proc _depot_auto_update { archives } {
|
||||
|
||||
puts "update depot: $cmd"
|
||||
|
||||
exec {*}$cmd >@ stdout 2>@ stderr
|
||||
if {[catch {exec {*}$cmd >@ stdout 2>@ stderr}]} {
|
||||
puts stderr "\nError: tool/depot/create during depot-auto-update failed\n"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user