Skip to content

Commit

Permalink
Fix order of debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbanham committed Jul 14, 2021
1 parent 1a5101a commit 1bbfd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/types.go
Expand Up @@ -75,7 +75,7 @@ func (t *Task) FromHTTP(r *http.Request) error {

if err := json.Unmarshal(body, &t); err != nil {
if strings.Contains(err.Error(), "unexpected end of JSON input") {
return fmt.Errorf("invalid JSON body passed to FromHTTP - %s - %w", err, body)
return fmt.Errorf("invalid JSON body passed to FromHTTP - %s - %w", body, err)
}
return err
}
Expand Down

0 comments on commit 1bbfd90

Please sign in to comment.