fix: show console error instead warning for `error!` (#654)
This commit is contained in:
parent
29fb1842a5
commit
d291cdb968
|
@ -67,7 +67,7 @@ pub fn console_error(s: &str) {
|
|||
if is_server() {
|
||||
eprintln!("{s}");
|
||||
} else {
|
||||
web_sys::console::warn_1(&JsValue::from_str(s));
|
||||
web_sys::console::error_1(&JsValue::from_str(s));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue