Function err

Source
pub fn err<T>(string: T)
where T: AsRef<str>,
Expand description

Prints the given string using the emscripten-defined err() JS function.

§Arguments

  • string - The string to print.

§Examples

err("Hello, world!");
err(format!("0.1 + 0.2 = {}", 0.1 + 0.2));