SCP: Fix command context reporting when errors occur in QUIET mode

This commit is contained in:
Mark Pizzolato 2017-10-22 18:44:14 -07:00
parent 3d1f092573
commit 09f69f13b5

2
scp.c
View file

@ -3140,7 +3140,7 @@ do {
} }
if ((stat >= SCPE_BASE) && (stat != SCPE_EXIT) && /* error from cmd? */ if ((stat >= SCPE_BASE) && (stat != SCPE_EXIT) && /* error from cmd? */
(stat != SCPE_STEP)) { (stat != SCPE_STEP)) {
if (!echo && !sim_quiet && /* report if not echoing */ if (!echo && /* report if not echoing */
!stat_nomessage && /* and not suppressing messages */ !stat_nomessage && /* and not suppressing messages */
!(cmdp && cmdp->message)) { /* and not handling them specially */ !(cmdp && cmdp->message)) { /* and not handling them specially */
sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]); sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]);