diff --git a/website/content/docs/custom-widgets.md b/website/content/docs/custom-widgets.md index 89b6f95f..ddf97f8e 100644 --- a/website/content/docs/custom-widgets.md +++ b/website/content/docs/custom-widgets.md @@ -154,7 +154,7 @@ Existing error: ```javascript isValid = () => { // Do internal validation - return { error: 'Your error message.' }; + return { error: { message: 'Your error message.' } }; }; ```