diff --git a/cmd/run.go b/cmd/run.go index 8c25e2ef..aef8d380 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -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()) diff --git a/widgets/table/fields.go b/widgets/table/fields.go index 90c4e12f..40def536 100644 --- a/widgets/table/fields.go +++ b/widgets/table/fields.go @@ -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]