summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/go/script-utils/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/go/script-utils/main.go b/client/go/script-utils/main.go
index 189140158ae..a27e94a76a7 100644
--- a/client/go/script-utils/main.go
+++ b/client/go/script-utils/main.go
@@ -6,6 +6,7 @@ package main
import (
"fmt"
"os"
+ "runtime"
"strings"
"github.com/vespa-engine/vespa/client/go/cmd/clusterstate"
@@ -68,7 +69,9 @@ func main() {
func handleSimplePanic() {
if r := recover(); r != nil {
- if je, ok := r.(error); ok {
+ if rte, ok := r.(runtime.Error); ok {
+ panic(rte)
+ } else if je, ok := r.(error); ok {
fmt.Fprintln(os.Stderr, je)
os.Exit(1)
} else {