PkgName in error

This commit is contained in:
Sergey Kurt 2017-03-31 10:52:54 +03:00
parent f4b9b2a406
commit 8ef33a1127

View file

@ -87,7 +87,7 @@ func (o *{{$tableNameSingular}}) Upsert(exec boil.Executor, {{if eq .DriverName
}
}
if len(insert) == 0 {
return errors.New("models: unable to upsert {{.Table.Name}}, could not build insert column list")
return errors.New("{{.PkgName}}: unable to upsert {{.Table.Name}}, could not build insert column list")
}
ret = strmangle.SetMerge(ret, {{$varNameSingular}}ColumnsWithAuto)