docs: improve widget custom validation sample (#1911)

This commit is contained in:
Karolis Šarapnickis 2018-11-27 01:37:46 +02:00 committed by Shawn Erquhart
parent da91038067
commit 5e2ce34c99

View File

@ -154,7 +154,7 @@ Existing error:
```javascript
isValid = () => {
// Do internal validation
return { error: 'Your error message.' };
return { error: { message: 'Your error message.' } };
};
```