aboutsummaryrefslogtreecommitdiffstats
path: root/sw/cal/err.go
diff options
context:
space:
mode:
Diffstat (limited to 'sw/cal/err.go')
-rw-r--r--sw/cal/err.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/cal/err.go b/sw/cal/err.go
index 26ef5df..4ceb1cc 100644
--- a/sw/cal/err.go
+++ b/sw/cal/err.go
@@ -1,12 +1,17 @@
package main
import (
+ "errors"
"fmt"
"os"
"go.einride.tech/can/pkg/dbc"
)
+var (
+ errWrongId = errors.New("wrong ID")
+)
+
func eprintf(format string, a ...any) {
weprintf(format, a...)
os.Exit(1)