Skip to content

Commit

Permalink
clean up some error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Kelly Deng <kelly@packet.com>
  • Loading branch information
kqdeng committed Nov 19, 2020
1 parent 8f0e53c commit 99800d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion db/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (d TinkDB) CreateTemplate(ctx context.Context, name string, data string, id
func (d TinkDB) GetTemplate(ctx context.Context, fields map[string]string) (string, string, string, error) {
getCondition, err := buildGetCondition(fields)
if err != nil {
return "", "", "", errors.Wrap(err, "failed to build get condition")
return "", "", "", errors.Wrap(err, "failed to get template")
}

query := `
Expand Down
4 changes: 2 additions & 2 deletions grpc-server/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ var state = map[int32]workflow.State{
}

const (
errFailedToGetTemplate = "failed to get template with ID: %s"
errTemplateParsing = "failed to parse template with ID: %s"
errFailedToGetTemplate = "failed to get template with ID %s"
errTemplateParsing = "failed to parse template with ID %s"
)

// CreateWorkflow implements workflow.CreateWorkflow
Expand Down

0 comments on commit 99800d5

Please sign in to comment.