Add error message for func SaveRow

This commit is contained in:
Владислав Весельский 2024-03-12 13:34:05 +03:00
parent 218e470106
commit eb73f8d63b
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ func SaveRow(ctx context.Context, db *db.DBC, dataItem meta.IMetaStruct) error {
if len(sqlSmt) > 200 { if len(sqlSmt) > 200 {
sqlSmt = sqlSmt[0: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() insertId, _ := res.LastInsertId()