mirror of
https://github.com/simh/simh.git
synced 2026-01-17 08:42:42 +00:00
SCP: Provide context for unexpected event processing errors
This commit is contained in:
parent
bd347e6807
commit
65e931c1ff
7
scp.c
7
scp.c
@ -10603,6 +10603,13 @@ do {
|
||||
reason = SCPE_OK;
|
||||
}
|
||||
AIO_EVENT_COMPLETE(uptr, reason);
|
||||
if ((reason != SCPE_OK) && /* Provide context for unexpected errors */
|
||||
(reason != SCPE_STOP) &&
|
||||
(reason != SCPE_STEP) &&
|
||||
(reason != SCPE_EXPECT) &&
|
||||
(reason != SCPE_EXIT) &&
|
||||
(reason != SCPE_REMOTE))
|
||||
reason = sim_messagef (SCPE_IERR, "\nUnexpected internal error while processing event for %s which returned %d - %s\n", sim_uname (uptr), reason, sim_error_text (reason));
|
||||
} while ((reason == SCPE_OK) &&
|
||||
(sim_interval <= 0) &&
|
||||
(sim_clock_queue != QUEUE_LIST_END) &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user