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.
2 parents a8f9619 + 304b530 commit c24aaa3Copy full SHA for c24aaa3
commands/run.js
@@ -75,12 +75,19 @@ module.exports = function (args) {
75
.run_batches(lt_config, batches, env)
76
.then(function (exit_code) {
77
console.log("stopping tunnel");
78
- tunnelInstance.stop();
79
- if (
80
- lt_config["run_settings"]["exit-on-failure"]
81
- ) {
82
- process.exit(exit_code);
83
- }
+ tunnelInstance.stop().then(function (done) {
+ if (
+ lt_config["run_settings"]["exit-on-failure"]
+ ) {
+ process.exit(exit_code);
+ }
84
+ });
85
+ })
86
+ .catch(function (error) {
87
+ console.log(
88
+ "Error occured while stopping tunnel"
89
+ );
90
+ console.log(error);
91
})
92
.catch(function (error) {
93
console.log("stopping tunnel failed");
0 commit comments