Skip to content

Commit

Permalink
fix(api): return more details on template apply error (#5548)
Browse files Browse the repository at this point in the history
Signed-off-by: richardlt <[email protected]>
  • Loading branch information
richardlt authored Nov 20, 2020
1 parent 89e5b34 commit 9de27a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion engine/api/workflowtemplate/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func executeTemplate(tmpl *template.Template, data map[string]interface{}) (stri
}
var buffer bytes.Buffer
if err := tmpl.Execute(&buffer, data); err != nil {
return "", sdk.NewError(sdk.ErrWrongRequest, sdk.WithStack(err))
return "", sdk.NewError(sdk.ErrWrongRequest, err)
}
return buffer.String(), nil
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/views/navbar/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.ui.menu.navbar {
background-color: $polar_grey_0;
border-radius: 0;

:host-context(.night) & {
background-color: $darkTheme_grey_0;
Expand Down

0 comments on commit 9de27a5

Please sign in to comment.