Improve error messages
This commit is contained in:
parent
db8271ae45
commit
e3a60a88c5
2 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ var runCmd = &cobra.Command{
|
|||
res, err := process.Exec()
|
||||
if err != nil {
|
||||
if !runSilent {
|
||||
color.Red(L("Process: %s\n"), err.Error())
|
||||
color.Red(L("Process: %s\n"), fmt.Sprintf("%s", strings.TrimPrefix(err.Error(), "Exception|404:")))
|
||||
return
|
||||
}
|
||||
fmt.Printf("%s\n", err.Error())
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ func (fields *FieldsDSL) BindModel(m *model.Model) error {
|
|||
log.Warn("[Fields.BindModel] %s.%s (%s) No matching filters found", m.Name, col.Name, col.Type)
|
||||
}
|
||||
|
||||
if filterField != nil {
|
||||
if filterField != nil && fields.Filter != nil {
|
||||
if _, has := fields.Filter[filterField.Key]; !has {
|
||||
fields.Filter[tableField.Key] = *filterField
|
||||
fields.filterMap[col.Name] = fields.Filter[tableField.Key]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue