mirror of
https://github.com/denoland/deno.git
synced 2025-08-08 21:08:17 +00:00
fix: add info suggestion for unsafely-ignore-certificate-errors
and add --help=full
(#28203)
For #27865
This commit is contained in:
parent
c1926ff1c4
commit
26bf1e67d7
6 changed files with 72 additions and 58 deletions
|
@ -437,6 +437,12 @@ fn get_suggestions_for_terminal_errors(e: &JsError) -> Vec<FixSuggestion> {
|
|||
"Run again with `--unstable-net` flag to enable this API.",
|
||||
),
|
||||
];
|
||||
} else if msg.contains("client error (Connect): invalid peer certificate") {
|
||||
return vec![
|
||||
FixSuggestion::hint(
|
||||
"Run again with the `--unsafely-ignore-certificate-errors` flag to bypass certificate errors.",
|
||||
),
|
||||
];
|
||||
// Try to capture errors like:
|
||||
// ```
|
||||
// Uncaught Error: Cannot find module '../build/Release/canvas.node'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue