Skip to content

Commit

Permalink
Merge pull request #224 from guggero/exit-code
Browse files Browse the repository at this point in the history
cmd/loop: set exit code 1 on error
  • Loading branch information
guggero authored Jun 11, 2020
2 parents 5b684e2 + 7538e3c commit b247e73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/loopd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"os"

"github.com/lightninglabs/loop/loopd"
)
Expand All @@ -11,5 +12,6 @@ func main() {
err := loopd.Run(cfg)
if err != nil {
fmt.Printf("loopd exited with an error: %v\n", err)
os.Exit(1)
}
}

0 comments on commit b247e73

Please sign in to comment.