@forge/cli
13.4.0-next.13-experimental-3dcad9713.4.0-next.18
out/command-line/proxy.js~
out/command-line/proxy.jsModified+4−2
Index: package/out/command-line/proxy.js
===================================================================
--- package/out/command-line/proxy.js
+++ package/out/command-line/proxy.js
@@ -10,10 +10,12 @@
const https_1 = tslib_1.__importDefault(require("https"));
const undici_1 = require("undici");
const cached_config_service_1 = require("../service/cached-config-service");
class ProxySetupError extends cli_shared_1.UserError {
- constructor() {
+ cause;
+ constructor(cause) {
super(cli_shared_1.Text.settings.proxy.setupError);
+ this.cause = cause;
}
}
exports.ProxySetupError = ProxySetupError;
function parseProxyUrl(proxyUrl) {
@@ -63,9 +65,9 @@
(0, undici_1.setGlobalDispatcher)(undiciProxyAgent);
return { httpAgent, httpsAgent, undiciProxyAgent, proxy };
}
catch (e) {
- throw new ProxySetupError();
+ throw new ProxySetupError(e);
}
}
}
//# sourceMappingURL=proxy.js.map
\ No newline at end of file