Skip to content

Commit

Permalink
Post lab11 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
n0npax authored and Jim hejtmanek committed Jul 31, 2020
1 parent 5a76dfa commit 999040b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 11_notify/n0npax/cmd/puppy-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func readPuppies(r io.Reader) ([]puppy.Puppy, error) {
}
var puppies []puppy.Puppy
if err = json.Unmarshal(b, &puppies); err != nil {
return nil, errors.New(string(b))
return nil, err
}
return puppies, nil
}
Expand Down
2 changes: 1 addition & 1 deletion 11_notify/n0npax/pkg/puppy/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
ErrCodeInternal = http.StatusInternalServerError
)

// Error wrapps errors with code, message and error itself
// Error wraps errors with code, message and error itself
type Error struct {
Message string
Code int
Expand Down

0 comments on commit 999040b

Please sign in to comment.