summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-05-22 00:29:41 +0300
committerPaul Buetow <paul@buetow.org>2023-05-22 00:29:41 +0300
commit70dd709f8f625c8ecb63e495b5b04a3b3b4066c2 (patch)
tree4e5b0c3f927cc504af92dbd099b7e9a7a63cc3ee /cmd
parent688ac52705c2e4bd015e8f369969de6a91e26d80 (diff)
return error from Run
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gorum/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/gorum/main.go b/cmd/gorum/main.go
index e39f620..0348066 100644
--- a/cmd/gorum/main.go
+++ b/cmd/gorum/main.go
@@ -28,7 +28,9 @@ func main() {
ctx, cancel := contextWithSignal()
defer cancel()
- internal.Start(ctx, *configFile)
+ if err := internal.Run(ctx, *configFile); err != nil {
+ panic(err)
+ }
<-ctx.Done()
log.Println("Good bye!")