Skip to content
Snippets Groups Projects

Resolve "Some of the used errors do not provide useful information"

6 files
+ 12
12
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -162,13 +162,13 @@ func (e ErrTypeNotSupported) Error() string {
// ErrCouldNotMarshall implements Error interface and is called if a
// database respone can not be parsed.
type ErrCouldNotMarshall struct {
Object any
Type any
Err error
Identifier any
Type any
Err error
}
func (e ErrCouldNotMarshall) Error() string {
return fmt.Sprintf("could not marshall Object: %v of Type: %v, Internal error: %v", e.Object, e.Type, e.Err)
return fmt.Sprintf("could not marshall Identifier: %v of Type: %v, Internal error: %v", e.Identifier, e.Type, e.Err)
}
// ErrCouldNotUpdate implements the Error interface and is called if a
Loading