Improve error message wrapping

This commit is contained in:
ekzyis 2024-09-26 11:20:52 +02:00
parent 5729ae631a
commit ee4e1f0edf
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ func handleGameProgress(req *sn.Item) error {
// parse and execute existing moves // parse and execute existing moves
if err = b.Parse(moves); err != nil { if err = b.Parse(moves); err != nil {
return fmt.Errorf("failed to parse move %s: %v\n", moves, err) return err
} }
} }
@ -181,7 +181,7 @@ func handleGameProgress(req *sn.Item) error {
// easter egg error message // easter egg error message
return errors.New("Nice try, fed.") return errors.New("Nice try, fed.")
} }
return fmt.Errorf("failed to parse move %s: %v\n", move, err) return err
} }
// upload image of updated board // upload image of updated board