Skip to content

Commit 2d1651f

Browse files
authored
use console.error for error macro (#3081)
1 parent b964cf1 commit 2d1651f

File tree

1 file changed

+1
-1
lines changed
  • examples/wasm-in-wasm-imports/src

1 file changed

+1
-1
lines changed

examples/wasm-in-wasm-imports/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ macro_rules! console_log {
2020

2121
#[macro_use]
2222
macro_rules! console_error {
23-
($($t:tt)*) => (log(&format_args!($($t)*).to_string()))
23+
($($t:tt)*) => (error(&format_args!($($t)*).to_string()))
2424
}
2525

2626
const WASM: &[u8] = include_bytes!("native_add.wasm");

0 commit comments

Comments
 (0)