summaryrefslogtreecommitdiff
path: root/webhogg/wasm/src/graphics.rs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-06-14 17:46:52 +0200
committerDennis Kobert <d-kobert@web.de>2019-06-14 17:46:52 +0200
commit031f63755aada2f1b51eb945fda2a18ad0d24aad (patch)
tree67ec62726748e734e0032e621107dd7a5fe1423a /webhogg/wasm/src/graphics.rs
parent6fc34ce9e0485a093487baf50738fc1ffb70ce82 (diff)
parenta4532a3f034850c9fe8e26cc210bda618136dcbf (diff)
Merge branch 'wasm' of https://github.com/TrueDoctor/DiscoBot into wasm
Diffstat (limited to 'webhogg/wasm/src/graphics.rs')
-rw-r--r--webhogg/wasm/src/graphics.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/webhogg/wasm/src/graphics.rs b/webhogg/wasm/src/graphics.rs
index c4902ae..219c652 100644
--- a/webhogg/wasm/src/graphics.rs
+++ b/webhogg/wasm/src/graphics.rs
@@ -10,7 +10,10 @@ pub fn start_graphics(canvas: web_sys::OffscreenCanvas) {
match context::graphics::GraphicsContext::from_canvas(canvas) {
Ok(ctx) => context::set_graphics(ctx),
- Err(e) => error!("graphics {}", e)
+ Err(e) => {
+ error!("graphics {}", e);
+ panic!()
+ }
}
}