Skip to content

Commit

Permalink
hotfix: error message cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
neutralinsomniac committed Jan 8, 2021
1 parent 8d7606a commit b96ac01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/genpkgup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,19 @@ func main() {
// retrieve the index.txt first
indexString, err := openbsd.GetIndexTxt(url)
if err != nil {
fmt.Fprintf(os.Stderr, "failed to retrieve index.txt at %s: %s", url, err)
fmt.Fprintf(os.Stderr, "failed to retrieve index.txt at %s: %s\n", url, err)
os.Exit(1)
}

// snag quirks for timestamp
quirksSignifyBlock, err := openbsd.GetQuirksSignifyBlockFromIndex(url, indexString)
if err != nil {
fmt.Fprintf(os.Stderr, "%s", err)
fmt.Fprintf(os.Stderr, "%s\n", err)
os.Exit(1)
}
quirksDate, err := openbsd.GetSignifyTimestampFromSignifyBlock(quirksSignifyBlock)
if err != nil {
fmt.Fprintf(os.Stderr, "%s", err)
fmt.Fprintf(os.Stderr, "%s\n", err)
os.Exit(1)
}
fmt.Println(quirksDate)
Expand Down
2 changes: 1 addition & 1 deletion cmd/obsdpkgup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func main() {
// now parse the actual package list
allPkgs = parseObsdPkgUpList(string(bodyBytes[quirksEndIndex:]))
case 404:
fmt.Fprintf(os.Stderr, "unable to locate pkgup index at '%s'.\nTry '%s -n' to disable pkgup index.\n", pkgUpIndexUrl, os.Args[0])
fmt.Fprintf(os.Stderr, "unable to locate pkgup index at '%s'.\n", pkgUpIndexUrl, os.Args[0])
os.Exit(1)
default:
fmt.Fprintf(os.Stderr, "unexpected HTTP response: %d\n", resp.StatusCode)
Expand Down

0 comments on commit b96ac01

Please sign in to comment.