You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: ensure proper support for corporate proxies (#143)
Proxies can be passed as env variables or as npm config options.
The highest precedence have the GLOBAL_AGENT_* env variables before
the regular env variables followed by the npm configuration options.
1.) env: GLOBAL_AGENT_HTTP_PROXY
2.) env: HTTP_PROXY
3.) npm: http-proxy
4.) npm: proxy
Fixes#142
@@ -265,7 +269,7 @@ export default class extends Generator {
265
269
});
266
270
generator.branch=repoInfo.data.default_branch;
267
271
}catch(e){
268
-
console.error(`Generator "${owner}/${repo}!${dir}${branch ? "#"+branch : ""}" not found! Run with --verbose for details!`);
272
+
console.error(`Generator "${owner}/${repo}!${dir}${branch ? "#"+branch : ""}" not found! Run with --verbose for details!\n(Hint: ${e.message})`);
269
273
if(this.options.verbose){
270
274
console.error(e);
271
275
}
@@ -283,7 +287,9 @@ export default class extends Generator {
283
287
});
284
288
commitSHA=reqBranch.data.commit.sha;
285
289
}catch(ex){
286
-
console.error(chalk.red(`Failed to retrieve the branch "${generator.branch}" for repository "${generator.name}" for "${generator.org}" organization! Run with --verbose for details!`));
290
+
console.error(
291
+
chalk.red(`Failed to retrieve the branch "${generator.branch}" for repository "${generator.name}" for "${generator.org}" organization! Run with --verbose for details!\n(Hint: ${e.message})`)
292
+
);
287
293
if(this.options.verbose){
288
294
console.error(chalk.red(ex.message));
289
295
}
@@ -405,6 +411,13 @@ export default class extends Generator {
console.error(`Failed to connect to GitHub to retrieve all available generators for "${this.options.ghOrg}" organization! Run with --verbose for details!`);
582
+
console.error(`Failed to connect to GitHub to retrieve all available generators for "${this.options.ghOrg}" organization! Run with --verbose for details!\n(Hint: ${e.message})`);
570
583
if(this.options.verbose){
571
584
console.error(e);
572
585
}
@@ -585,7 +598,7 @@ export default class extends Generator {
console.error(`Failed to connect to GitHub to retrieve additional generators for organization or user "${this.options.addGhOrg}"! Run with --verbose for details!`);
601
+
console.error(`Failed to connect to GitHub to retrieve additional generators for organization or user "${this.options.addGhOrg}"! Run with --verbose for details!\n(Hint: ${e.message})`);
0 commit comments