We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95dab65 commit 6cb14dfCopy full SHA for 6cb14df
1 file changed
docs/async-example.md
@@ -33,7 +33,6 @@ let api = new Api({
33
```
34
35
```js
36
-require('error-object-polyfill');
37
class ModelValidator {
38
constructor() {
39
this.validator = null;
@@ -81,6 +80,7 @@ class ModelValidator {
81
80
try {
82
await this.validationAsync;
83
} catch (error) {
+ require('error-object-polyfill');
84
throw Error.create({ title: `InvalidRequest: ${error.message}.` }, 'InvalidInputRequest);
85
}
86
0 commit comments