mirror of
https://github.com/holub/mame
synced 2025-07-01 08:18:59 +03:00
added missing catch in chd_file_compressor::async_read() and chdman main() (nw)
happens when e.g. disk is full
This commit is contained in:
parent
de52468837
commit
e11953e91d
@ -2665,6 +2665,11 @@ void chd_file_compressor::async_read()
|
||||
// advance the read pointer
|
||||
m_read_done_offset += numbytes;
|
||||
}
|
||||
catch (chd_error& err)
|
||||
{
|
||||
fprintf(stderr, "CHD error occured: %s\n", chd_file::error_string(err));
|
||||
m_read_error = true;
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
{
|
||||
fprintf(stderr, "exception occured: %s\n", ex.what());
|
||||
|
@ -2923,8 +2923,14 @@ int CLIB_DECL main(int argc, char *argv[])
|
||||
(*s_commands[cmdnum].handler)(parameters);
|
||||
return 0;
|
||||
}
|
||||
catch (chd_error &err)
|
||||
{
|
||||
fprintf(stderr, "CHD error occured (main): %s\n", chd_file::error_string(err));
|
||||
return 1;
|
||||
}
|
||||
catch (fatal_error &err)
|
||||
{
|
||||
fprintf(stderr, "Fatal error occured: %d\n", err.error());
|
||||
return err.error();
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
|
Loading…
Reference in New Issue
Block a user