fix url to point to us

This commit is contained in:
Corwin 2024-04-23 20:30:40 +01:00
parent 1c9e829bd1
commit a65f6402be
No known key found for this signature in database

View file

@ -14,7 +14,7 @@ mod text;
static WEBSITE: &str = {
match core::option_env!("AGBRS_BACKTRACE_WEBSITE") {
Some(x) => x,
None => "",
None => "https://agbrs.dev/crash#",
}
};
@ -30,7 +30,7 @@ pub fn render_backtrace(trace: &backtrace::Frames, info: &PanicInfo) -> ! {
let qrcode_string_data = if WEBSITE.is_empty() {
format!("{trace}")
} else {
format!("{WEBSITE}#{trace}")
format!("{WEBSITE}{trace}")
};
crate::println!("Stack trace: {qrcode_string_data}");