core: Fix Stringer on OutputState for types

The implementation of Stringer on OutputState previously assumed outputs
may only be strings - we now no longer cast to string, instead using the
built in formatting directives.
This commit is contained in:
James Nugent 2016-06-23 14:32:00 +03:00
parent 8403a465bc
commit 17f4777039
1 changed files with 1 additions and 2 deletions

View File

@ -635,8 +635,7 @@ type OutputState struct {
}
func (s *OutputState) String() string {
// This is a v0.6.x implementation only
return fmt.Sprintf("%s", s.Value.(string))
return fmt.Sprintf("%#v", s.Value)
}
// Equal compares two OutputState structures for equality. nil values are