From 2e42513d71c4ab90cdf195cd0834981c14f4a17e Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 4 Jun 2021 13:47:49 -0500 Subject: [PATCH] chore(cartrige): rewrite error to be more descriptive --- src/cartridge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cartridge.rs b/src/cartridge.rs index c68542a..8d05019 100644 --- a/src/cartridge.rs +++ b/src/cartridge.rs @@ -81,7 +81,7 @@ impl Cartridge { 0x00 => MbcKind::None, 0x01 => MbcKind::Mbc1, 0x19 => MbcKind::Mbc5, - _ => unimplemented!("{} is the id of an unsupported memory bank controller", id), + _ => unimplemented!("id {:#04X} is an unsupported MBC", id), } } }