Skip to content

Commit

Permalink
Added todos for better error messages in a major version
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Nov 28, 2024
1 parent 3323487 commit 49e1e9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions key_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (vb *keyWriter) writeKey(val Value) Error {
return nil
}

// TODO: Replace the error message with fmt.Sprintf("Key Generation Error. Value type not supported: %T", val)
return newError(types.PARAMETER_ERROR, "Key Generation Error. Value not supported: "+val.String())
}

Expand All @@ -165,5 +166,6 @@ func verifyKey(val Value) Error {
return nil
}

// TODO: Replace the error message with fmt.Sprintf("Key Generation Error. Value type not supported: %T", val)
return newError(types.PARAMETER_ERROR, "Key Generation Error. Value not supported: "+val.String())
}

0 comments on commit 49e1e9d

Please sign in to comment.