From d2e7d5ac146d33107e0ea8654a2000f8d738c71c Mon Sep 17 00:00:00 2001 From: iFaceless <43306860+iFaceless@users.noreply.github.com> Date: Fri, 17 Jan 2020 22:39:30 +0800 Subject: [PATCH] Update USERGUIDE.md --- USERGUIDE.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/USERGUIDE.md b/USERGUIDE.md index 812de90..c8e2ccb 100644 --- a/USERGUIDE.md +++ b/USERGUIDE.md @@ -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 } ```