Skip to content

Commit

Permalink
chore(errors): reformat some error copy
Browse files Browse the repository at this point in the history
  • Loading branch information
xizhao committed Jan 29, 2018
1 parent 867cc0b commit a848a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/fossa/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func DefaultCmd(c *cli.Context) {
err := doUpload(config, builds)
if err != nil {
s.Stop()
log.Logger.Fatalf("Upload failed: %s\n", err.Error())
log.Logger.Fatalf("Upload failed: %s. Run with -o to skip upload.\n", err.Error())
}
s.Stop()
} else {
Expand Down Expand Up @@ -326,7 +326,7 @@ func doUpload(config Config, modules []*build.Module) error {
return errors.New("invalid API key")
} else if resp.StatusCode == http.StatusPreconditionRequired {
// TODO: handle "Managed Project" workflow
return fmt.Errorf("invalid project or revision; make sure this version is published and FOSSA has access to your repo.")
return fmt.Errorf("invalid project or revision; make sure this version is published and FOSSA has access to your repo")
} else if resp.StatusCode != http.StatusOK {
return fmt.Errorf("bad server response (%s)", responseStr)
} else {
Expand Down

0 comments on commit a848a58

Please sign in to comment.