summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/diimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/diimage.h')
-rw-r--r--src/emu/diimage.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/diimage.h b/src/emu/diimage.h
index fb2a317d60a..4a3ed06d6cc 100644
--- a/src/emu/diimage.h
+++ b/src/emu/diimage.h
@@ -243,7 +243,7 @@ protected:
void clear_error();
- void check_for_file() const { assert_always(m_file, "Illegal operation on unmounted image"); }
+ void check_for_file() const { if (!m_file) throw emu_fatalerror("%s(%s): Illegal operation on unmounted image", device().shortname(), device().tag()); }
void setup_working_directory();
bool try_change_working_directory(const std::string &subdir);