From 13d00ae81d39a2c69e9d0a06c8b84e55cbf1a4b8 Mon Sep 17 00:00:00 2001 From: Dean Belfield <36993476+breakintoprogram@users.noreply.github.com> Date: Thu, 20 Oct 2022 22:42:27 +0100 Subject: [PATCH] Tweaked error handling --- main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index a1e78d0..bbff2cb 100644 --- a/main.c +++ b/main.c @@ -2,7 +2,7 @@ * Title: AGON MOS * Author: Dean Belfield * Created: 19/06/2022 - * Last Updated: 03/10/2022 + * Last Updated: 20/10/2022 * * Modinfo: * 11/07/2022: Version 0.01: Tweaks for Agon Light, Command Line code added @@ -14,7 +14,8 @@ * 10/08/2022: Version 0.07: Bug fixes * 05/09/2022: Version 0.08: Minor updates to MOS * 02/10/2022: Version 1.00: Improved error handling for languages, changed bootup title to Quark - * 03/10/2022: Version 1.01: Added SET command + * 03/10/2022: Version 1.01: Added SET command, tweaked error handling + * 20/10/2022: + Tweaked error handling */ #include @@ -103,7 +104,7 @@ int main(void) { // while(1) { if(mos_input(&cmd, sizeof(cmd)) == 13) { - mos_exec(&cmd); + mos_error(mos_exec(&cmd)); } else { printf("%cEscape\n\r", MOS_prompt);