veraison / swid

SWID and CoSWID manipulation library
Apache License 2.0
7 stars 2 forks source link

Add Type Name to error message in CBOR conversion #32

Closed CodingVoid closed 2 years ago

CodingVoid commented 2 years ago

It was first a bit puzzling, when I got the error message. I think adding the problematic type greatly enhances finding the cause of ones problem.

thomas-fossati commented 2 years ago

It was first a bit puzzling, when I got the error message. I think adding the problematic type greatly enhances finding the cause of ones problem.

Great stuff. There's fallout on a couple of tests that need fixing:

Error Trace:    processes_test.go:72
Error:          Not equal: 
                expected: &errors.errorString{s:"array MUST NOT be 0-length"}
            actual  : &errors.errorString{s:"Processes array MUST NOT be 0-length"}