Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

Commit fbc067f

Browse files
author
Dr. Safi
committed
Update trying to catch error from child_process.
1 parent 0f516e9 commit fbc067f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

module/reusableNestedUnit/implementation/shellscript/controllerMixin.mixin.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ export default Mixin(({ Superclass }) => {
2424
let { unit: unitKey} = nestedUnitInstance
2525
let unitInstance = await this.getUnit({ unitKey })
2626
// execute command
27-
await unitInstance.executeScript()
27+
try {
28+
await unitInstance.executeScript()
29+
} catch (error) { // NOT WORKING !!!
30+
console.log('ERRORED !!!')
31+
throw error
32+
}
2833
}
2934

3035
// [3] Iterate over insertion points

0 commit comments

Comments
 (0)