summaryrefslogtreecommitdiff
path: root/webhogg/wasm/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webhogg/wasm/src/error.rs')
-rw-r--r--webhogg/wasm/src/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/webhogg/wasm/src/error.rs b/webhogg/wasm/src/error.rs
index b544112..1c6ec27 100644
--- a/webhogg/wasm/src/error.rs
+++ b/webhogg/wasm/src/error.rs
@@ -2,7 +2,7 @@ use std::error::Error;
#[derive(Debug)]
pub enum WasmError {
- TestError(String),
+ WebGl2ContextCreation(String),
}
impl std::fmt::Display for WasmError {
@@ -14,7 +14,7 @@ impl std::fmt::Display for WasmError {
impl Error for WasmError {
fn description(&self) -> &str {
match self {
- WasmError::TestError(msg) => msg,
+ WasmError::WebGl2ContextCreation(msg) => msg,
}
}
@@ -24,7 +24,7 @@ impl Error for WasmError {
impl WasmError {
pub fn name(&self) -> &str {
match self {
- WasmError::TestError(_) => "TestError",
+ WasmError::WebGl2ContextCreation(_) => "WebGl2ContextCreationError",
}
}
}