Skip to content

Commit

Permalink
Merge pull request DBCDK#184 from bradfitz/newline
Browse files Browse the repository at this point in the history
Add newline to errors from morph.
  • Loading branch information
srhb authored Mar 3, 2022
2 parents c5e8961 + 9ca3a85 commit 0f2126c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions morph.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import (
"encoding/json"
"errors"
"fmt"
"os"
"path/filepath"
"strings"

"github.com/DBCDK/kingpin"
"github.com/DBCDK/morph/assets"
"github.com/DBCDK/morph/filter"
Expand All @@ -12,9 +16,6 @@ import (
"github.com/DBCDK/morph/secrets"
"github.com/DBCDK/morph/ssh"
"github.com/DBCDK/morph/utils"
"os"
"path/filepath"
"strings"
)

// This is set at build time via -ldflags magic
Expand Down Expand Up @@ -291,7 +292,7 @@ func main() {
func handleError(err error) {
//Stupid handling of catch-all errors for now
if err != nil {
fmt.Fprint(os.Stderr, err.Error())
fmt.Fprintln(os.Stderr, err)
utils.Exit(1)
}
}
Expand Down

0 comments on commit 0f2126c

Please sign in to comment.