Skip to content

Commit

Permalink
use %q
Browse files Browse the repository at this point in the history
  • Loading branch information
steviebps committed Sep 12, 2021
1 parent fca02c0 commit 9d9e344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/toggle.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (t *Toggle) UnmarshalJSON(b []byte) error {
*t = alias.toToggle()

if !t.IsValidValue(t.Value) {
return fmt.Errorf("%v (%T) not of the type \"%s\" from the toggle: %s", t.Value, t.Value, t.ToggleType, t.Name)
return fmt.Errorf("%v (%T) not of the type %q from the toggle: %s", t.Value, t.Value, t.ToggleType, t.Name)
}

var previous *Override
Expand All @@ -61,7 +61,7 @@ func (t *Toggle) UnmarshalJSON(b []byte) error {
}

if !t.IsValidValue(override.Value) {
return fmt.Errorf("%v (%T) not of the type \"%s\" from the toggle override: %s", override.Value, override.Value, t.ToggleType, t.Name)
return fmt.Errorf("%v (%T) not of the type %q from the toggle override: %s", override.Value, override.Value, t.ToggleType, t.Name)
}

previous = override
Expand Down

0 comments on commit 9d9e344

Please sign in to comment.