Unverified Commit b77f8cdd authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Turbopack panic handler: link to bug report issue template (#76226)

When asking the user to open a new issue, link to the new issue form
with the bug report template pre-selected.
parent 22420f77
...@@ -123,7 +123,7 @@ pub fn log_internal_error_and_inform(err_info: &str) { ...@@ -123,7 +123,7 @@ pub fn log_internal_error_and_inform(err_info: &str) {
.unwrap_or_else(|_| panic!("Failed to open {}", PANIC_LOG.to_string_lossy())); .unwrap_or_else(|_| panic!("Failed to open {}", PANIC_LOG.to_string_lossy()));
writeln!(log_file, "{}\n{}", LOG_DIVIDER, err_info).unwrap(); writeln!(log_file, "{}\n{}", LOG_DIVIDER, err_info).unwrap();
eprintln!("{}: An unexpected Turbopack error occurred. Please report the content of {}, along with a description of what you were doing when the error occurred, to https://github.com/vercel/next.js/issues/new", "FATAL".red().bold(), PANIC_LOG.to_string_lossy()); eprintln!("{}: An unexpected Turbopack error occurred. Please report the content of {}, along with a description of what you were doing when the error occurred, to https://github.com/vercel/next.js/issues/new?template=1.bug_report.yml", "FATAL".red().bold(), PANIC_LOG.to_string_lossy());
} }
#[napi] #[napi]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment