Skip to content

Commit

Permalink
Improves error reporting on startup of api
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Sep 21, 2024
1 parent 23f2c61 commit 9fa9e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"bytes"
"encoding/json"
"fmt"
"os"
"strings"
"time"

"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/logger"
"github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/output"
// EXISTING_CODE
)
Expand Down Expand Up @@ -145,7 +145,7 @@ func (opts *DaemonOptions) Start(ready chan<- bool) {
in := opts.toInternal()
buffer := bytes.Buffer{}
if err := in.DaemonBytes(&buffer); err != nil {
logger.Fatal(err)
fmt.Fprintf(os.Stderr, "Error starting daemon: %s\n", err)
}
}()

Expand Down

0 comments on commit 9fa9e99

Please sign in to comment.