fix: show console error instead warning for `error!` (#654)

This commit is contained in:
Pikhosh 2023-03-10 18:12:44 +03:30 committed by GitHub
parent 29fb1842a5
commit d291cdb968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}