Skip to content

Commit

Permalink
Improve error message when function or trigger not import in engine (#…
Browse files Browse the repository at this point in the history
…218)

Improve the error message when function or trigger not installed in engine
  • Loading branch information
lixingwang authored Aug 4, 2020
1 parent 9720be0 commit 94757ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (a *App) createTriggers(tConfigs []*trigger.Config, runner action.Runner) (
var ok bool
ref, ok = support.GetAliasRef("trigger", tConfig.Ref)
if !ok {
return nil, fmt.Errorf("trigger [%s]'s 'ref' [%s] not imported", tConfig.Id, tConfig.Ref)
return nil, fmt.Errorf("unable to start trigger [%s], ref alias '%s' has no corresponding installed trigger", tConfig.Id, tConfig.Ref)
}
}

Expand Down
2 changes: 1 addition & 1 deletion data/expression/script/gocc/ast/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewFuncExpr(name interface{}, args interface{}) (Expr, error) {

f := function.Get(funcName)
if f == nil {
return nil, fmt.Errorf("function '%s' not registered", funcName)
return nil, fmt.Errorf("unable to parse expression, function [%s] is not installed", funcName)
}
fe := &funcExpr{f: f}

Expand Down

0 comments on commit 94757ba

Please sign in to comment.