mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01: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:
committed by
Christian Helmuth
parent
1f225b4b6f
commit
7fb702a0d9
@@ -233,7 +233,10 @@ proc _depot_auto_update { archives } {
|
|||||||
|
|
||||||
puts "update depot: $cmd"
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user