error can be obscure when marshalling illegal values
Bug #897584 reported by
Roger Peppe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
goyaml |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Here's a distilled example of a situation I encountered for real
(I'd forgotten to call Interface() on the reflect.Value that
I was adding to the map).
package main
import (
"fmt"
"launchpad.
"reflect"
)
func main() {
x := map[string]
_, err := goyaml.Marshal(x)
fmt.Printf("error: %v\n", err)
}
This prints:
error: YAML error: reflect.
I think it would be desirable to include some kind of context with the error
(for example the type that caused the problem).
Changed in goyaml: | |
status: | New → Confirmed |
To post a comment you must log in.