@indra.ai/deva 1.5.4 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1499,10 +1499,10 @@ class Deva {
|
|
|
1499
1499
|
this.state('try', `help:${helpFile}`);
|
|
1500
1500
|
try {
|
|
1501
1501
|
const helpExists = this.lib.fs.existsSync(helpPath); // check if help file exists
|
|
1502
|
-
if (!helpExists) return
|
|
1502
|
+
if (!helpExists) return resolve(this._messages.help_not_found);
|
|
1503
1503
|
const helpDoc = this.lib.fs.readFileSync(helpPath, 'utf8');
|
|
1504
|
-
this.state('
|
|
1505
|
-
return
|
|
1504
|
+
this.state('resolve', `help:${helpFile}`);
|
|
1505
|
+
return resolve(helpDoc);
|
|
1506
1506
|
} catch (e) {
|
|
1507
1507
|
this.state('catch', `help:${helpFile}`);
|
|
1508
1508
|
return this.error(e, msg, reject);
|