@indra.ai/deva 1.4.25 → 1.4.27
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 +6 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1498,15 +1498,16 @@ class Deva {
|
|
|
1498
1498
|
this.state('help', helpFile);
|
|
1499
1499
|
|
|
1500
1500
|
const helpPath = this.lib.path.join(help_dir, 'help', `${helpFile}.feecting`);
|
|
1501
|
+
this.state('try', `help:${helpFile}`);
|
|
1501
1502
|
try {
|
|
1502
1503
|
const helpExists = fs.existsSync(helpPath);
|
|
1503
|
-
if (!helpExists) return
|
|
1504
|
+
if (!helpExists) return this.finish(this._messages.help_not_found, resolve);
|
|
1504
1505
|
const helpDoc = this.lib.fs.readFileSync(helpPath, 'utf8');
|
|
1505
|
-
this.state('
|
|
1506
|
-
return
|
|
1506
|
+
this.state('finish', `help:${helpFile}`);
|
|
1507
|
+
return this.finish(helpDoc, resolve);
|
|
1507
1508
|
} catch (e) {
|
|
1508
|
-
this.state('
|
|
1509
|
-
return this.error(
|
|
1509
|
+
this.state('catch', `help:${helpFile}`);
|
|
1510
|
+
return this.error(e, msg, reject);
|
|
1510
1511
|
}
|
|
1511
1512
|
});
|
|
1512
1513
|
}
|