Skip to content

Commit

Permalink
remove errors dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Apr 3, 2019
1 parent 7f6e4e1 commit 094e0a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions null.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql"
"database/sql/driver"
"encoding/json"
"errors"
"fmt"
)

// Int is an int that will write as null when it is zero both to databases and json
Expand Down Expand Up @@ -171,7 +171,7 @@ func (m *StringMap) Scan(src interface{}) error {
case []byte:
source = src.([]byte)
default:
return errors.New("incompatible type for map")
return fmt.Errorf("incompatible type for map")
}

// 0 length string is same as nil
Expand Down

0 comments on commit 094e0a4

Please sign in to comment.