diff options
Diffstat (limited to 'sw/cal/err.go')
| -rw-r--r-- | sw/cal/err.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/cal/err.go b/sw/cal/err.go index 951ac12..452e5f0 100644 --- a/sw/cal/err.go +++ b/sw/cal/err.go @@ -2,10 +2,20 @@ package main import ( "fmt" + "os" "go.einride.tech/can/pkg/dbc" ) +func eprintf(format string, a ...any) { + weprintf(format, a...) + os.Exit(1) +} + +func weprintf(format string, a ...any) { + fmt.Fprintf(os.Stderr, format, a...) +} + type ErrDupSig struct { sig dbc.SignalDef } |