Add error message for func SaveRow
This commit is contained in:
parent
218e470106
commit
eb73f8d63b
2
save.go
2
save.go
|
@ -96,7 +96,7 @@ func SaveRow(ctx context.Context, db *db.DBC, dataItem meta.IMetaStruct) error {
|
|||
if len(sqlSmt) > 200 {
|
||||
sqlSmt = sqlSmt[0:200]
|
||||
}
|
||||
return errors.Errorf("%s (%s)", err.Error(), sqlSmt)
|
||||
return errors.Errorf("Can not execute SaveRow. Got error from updateBuilder.ExecContext. %s (%s)", err.Error(), sqlSmt)
|
||||
}
|
||||
|
||||
insertId, _ := res.LastInsertId()
|
||||
|
|
Loading…
Reference in New Issue