diff options
author | 2023-04-08 02:38:31 +1000 | |
---|---|---|
committer | 2023-04-08 02:38:31 +1000 | |
commit | 2b424f5a8090961db0d8224f755b2dff7c9e9a8c (patch) | |
tree | 97da90487cbdefff24bcccc57f8a874b9ac8c929 /src/devices/imagedev/wafadrive.cpp | |
parent | 9bda81283d963ee04dba90901f89c6f264ed3f3b (diff) |
Restored ability of for image devices to report specific error messages.
Restores ability to give specific/detailed messages removed in
6f7e4141ea14acaaf9cb973c66788fabb3457023 while pandering to obsession
with single return value.
Moved responsibility for displaying the error message in the UI to the
caller rather than device_image_interface, and made
device_image_interface always log the error along with the full path and
error condition content.
Gave several image devices more detailed error messages. Added some
FIXME comments for apparent bugs.
Diffstat (limited to 'src/devices/imagedev/wafadrive.cpp')
-rw-r--r-- | src/devices/imagedev/wafadrive.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/imagedev/wafadrive.cpp b/src/devices/imagedev/wafadrive.cpp index 9e9e353da32..3bbdfa994ec 100644 --- a/src/devices/imagedev/wafadrive.cpp +++ b/src/devices/imagedev/wafadrive.cpp @@ -41,9 +41,9 @@ void wafadrive_image_device::device_start() { } -std::error_condition wafadrive_image_device::call_load() +std::pair<std::error_condition, std::string> wafadrive_image_device::call_load() { - return std::error_condition(); + return std::make_pair(std::error_condition(), std::string()); } void wafadrive_image_device::call_unload() |