We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aabda7a commit 28e7b3eCopy full SHA for 28e7b3e
dist/ejs.es
@@ -2796,13 +2796,16 @@ module ejs {
2796
}
2797
cmd.finalize()
2798
cmd.wait()
2799
+ /* Currently undocumented - return the error and results via options */
2800
+ if (options.error) {
2801
+ if (cmd.error) {
2802
+ options.error = cmd.error
2803
+ }
2804
+ options.results = results.toString()
2805
2806
if (cmd.status != 0 && options.exceptions !== false) {
2807
throw new IOError('Command failed, status ' + cmd.status + '\n' + cmd.error)
2808
- /* Currently undocumented */
- if (options.error && cmd.error) {
- options.error = cmd.error
- }
2809
return results.toString()
2810
2811
0 commit comments