mirror of
https://github.com/lightninglabs/loop
synced 2024-11-09 19:10:47 +00:00
Merge pull request #224 from guggero/exit-code
cmd/loop: set exit code 1 on error
This commit is contained in:
commit
b247e738e5
@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/lightninglabs/loop/loopd"
|
"github.com/lightninglabs/loop/loopd"
|
||||||
)
|
)
|
||||||
@ -11,5 +12,6 @@ func main() {
|
|||||||
err := loopd.Run(cfg)
|
err := loopd.Run(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("loopd exited with an error: %v\n", err)
|
fmt.Printf("loopd exited with an error: %v\n", err)
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user