mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-20 16:26:33 +00:00
Don't reformat browser errors
This commit is contained in:
@ -96,20 +96,6 @@ impl super::Formatter for Browser {
|
|||||||
return stack
|
return stack
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for a firefox-like error where all lines have a `@` in them
|
|
||||||
// separating the symbol and source
|
|
||||||
if stack.lines().all(|s| s.contains("@")) {
|
|
||||||
for line in stack.lines() {
|
|
||||||
header.push_str("\n");
|
|
||||||
header.push_str(" at");
|
|
||||||
for part in line.split("@") {
|
|
||||||
header.push_str(" ");
|
|
||||||
header.push_str(part);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return header
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fallback to make sure we don't lose any info
|
// Fallback to make sure we don't lose any info
|
||||||
format!("{}\n{}", header, stack)
|
format!("{}\n{}", header, stack)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user