Skip to content

Commit 3e60b9e

Browse files
authored
Merge pull request #104 from tri-adam/clean-error-output
fix: clean up output on error
2 parents e2fc497 + 394f525 commit 3e60b9e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cmd/scs-build/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
func main() {
1414
if err := execute(); err != nil {
15-
fmt.Fprintln(os.Stderr, err)
15+
fmt.Fprintln(os.Stderr, "Error:", err)
1616
os.Exit(1)
1717
}
1818
}

cmd/scs-build/root.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ import (
1515
)
1616

1717
var rootCmd = &cobra.Command{
18-
Use: "scs-build",
19-
Short: "Sylabs Cloud Build Client",
18+
Use: "scs-build",
19+
Short: "Sylabs Cloud Build Client",
20+
SilenceErrors: true,
21+
SilenceUsage: true,
2022
}
2123

2224
// Build metadata set by linker.

0 commit comments

Comments
 (0)