diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-03-22 17:36:45 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-03-22 17:38:01 -0400 |
commit | dbe56e3113626849cc1d45fbb6008912b66f3137 (patch) | |
tree | f74d01ff497357c416459a9d12d716c053bd8bc3 | |
parent | 9eb8c177bbcad019602acb55cbb6f9be35345e1e (diff) |
Include option and file names in fatal error message for failure to load image
-rw-r--r-- | src/emu/image.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/image.cpp b/src/emu/image.cpp index 06ae645fb39..7504fa93ff5 100644 --- a/src/emu/image.cpp +++ b/src/emu/image.cpp @@ -63,6 +63,7 @@ image_manager::image_manager(running_machine &machine) { // retrieve image error message std::string image_err = std::string(image.error()); + std::string startup_image_name = startup_image; // unload the bad image image.unload(); @@ -72,9 +73,10 @@ image_manager::image_manager(running_machine &machine) if (machine.options().write_config()) write_config(machine.options(), nullptr, &machine.system()); - fatalerror_exitcode(machine, EMU_ERR_DEVICE, "Device %s load (%s) failed: %s", + fatalerror_exitcode(machine, EMU_ERR_DEVICE, "Device %s load (-%s %s) failed: %s", image.device().name(), - startup_image.c_str(), + image.instance_name().c_str(), + startup_image_name.c_str(), image_err.c_str()); } } |