summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/clifront.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/clifront.c')
-rw-r--r--src/emu/clifront.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/clifront.c b/src/emu/clifront.c
index f031a84ec0f..90f63bde35e 100644
--- a/src/emu/clifront.c
+++ b/src/emu/clifront.c
@@ -1550,7 +1550,9 @@ void cli_frontend::execute_commands(const char *exename)
if (strcmp(m_options.command(), CLICOMMAND_VALIDATE) == 0)
{
validity_checker valid(m_options);
- valid.check_all();
+ bool result = valid.check_all();
+ if (!result)
+ throw emu_fatalerror(MAMERR_FAILED_VALIDITY, "Validity check failed!\n");
return;
}