Commit ae08b1d5 authored by lukas.burgey's avatar lukas.burgey

Make an error message nicer

parent 38b0469c
...@@ -206,8 +206,7 @@ func UnmarshalOutput(inputBytes []byte, o *Output) (err error) { ...@@ -206,8 +206,7 @@ func UnmarshalOutput(inputBytes []byte, o *Output) (err error) {
case []int: case []int:
break break
default: default:
err = fmt.Errorf("QuestionnaireAnswers contains invalid answer type: %v (%v)", t, answer) err = fmt.Errorf("QuestionnaireAnswers contains invalid answer: %v (%T)", answer, t)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment