Skip to content

Commit

Permalink
Update USERGUIDE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iFaceless committed Jan 17, 2020
1 parent 09d993e commit d2e7d5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions USERGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ func (ts *TaskSchema) GetTitle(ctx context.Context, model *model.TaskModel) stri
return "Task Title"
}

func (ts *TaskSchema) GetDescription(model *model.TaskModel) string {
func (ts *TaskSchema) GetDescription(model *model.TaskModel) (string, error) {
// Here we ignore the first context param.
return "Custom description"
// If method returns an error, portal will ignore the result.
return "Custom description", nil
}
```

Expand Down

0 comments on commit d2e7d5a

Please sign in to comment.