Skip to content

Commit

Permalink
chore: more detailed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Mar 5, 2023
1 parent f4a8bbc commit 00185bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func _newModel(db *DB, dest interface{}, scan bool) (Model, error) {
if typ.Kind() == reflect.Struct {
return newStructTableModel(db, dest, db.Table(typ)), nil
}
return nil, fmt.Errorf("bun: Model(nil %T)", dest)
return nil, fmt.Errorf("bun: Model(nil %s %T)", typ.Kind(), dest)
}

v = v.Elem()
Expand Down

0 comments on commit 00185bc

Please sign in to comment.