Skip to content

Replacing the msg had the effect of overwritting original message. #2

Description

@jmonroynieto

A combination of WithInner and WithMsg lead to loss of infomation. Here is a quick recap of the output I encounterd.

error: TSV generation failed: message does not contain a ReferenceList
error: TSV generation failed: message does not contain a ReferenceList
error: TSV generation failed: message does not contain a ReferenceList
inner looks like this: error: 
	TSV generation failed
inner looks like this: error: 
	TSV generation failed
inner looks like this: error: 
	TSV generation failed
inner looks like this: error: message does not contain a ReferenceList
inner looks like this: error: message does not contain a ReferenceList
inner looks like this: error: message does not contain a ReferenceList

code that used to cause this:

if !minHashObj.HasReferenceList() { 
return fmt.Errorf("message does not contain a ReferenceList")
    }
//leads back to               
if err := ExportMinHashesToTSV(inputStream, outputStream); err != nil {
		return errorutils.New(err, errorutils.WithExitCode(2), errorutils.WithLineRef("h4mD92FLvUG"), errorutils.WithInner(fmt.Errorf("inner looks like this")))
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions