@forge/tunnel 5.7.0-next.17 → 5.7.0-next.18
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/CHANGELOG.md
CHANGED
|
@@ -30,11 +30,11 @@ class CloudflareCreateTunnelService {
|
|
|
30
30
|
child.stderr?.on('data', (chunk) => this.logger.debug(cli_shared_1.Text.tunnel.cloudflaredLog(chunk)));
|
|
31
31
|
child.on('error', (err) => {
|
|
32
32
|
this.logger.error(err);
|
|
33
|
-
throw new cli_shared_1.BaseError(cli_shared_1.Text.tunnel.error.cloudflaredError);
|
|
33
|
+
throw new cli_shared_1.BaseError(undefined, cli_shared_1.Text.tunnel.error.cloudflaredError);
|
|
34
34
|
});
|
|
35
35
|
child.on('exit', (code) => {
|
|
36
|
-
if (code !== 0) {
|
|
37
|
-
throw new cli_shared_1.BaseError(cli_shared_1.Text.tunnel.error.cloudflaredExit(code));
|
|
36
|
+
if (code !== 0 && code !== null) {
|
|
37
|
+
throw new cli_shared_1.BaseError(undefined, cli_shared_1.Text.tunnel.error.cloudflaredExit(code));
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
await Promise.all(connections);
|