From d061c6116a660d7be2025cc405a4351f9335e26d Mon Sep 17 00:00:00 2001 From: Antonio Emmanuel Guerrero Silva Date: Tue, 19 Nov 2024 08:53:02 -0600 Subject: [PATCH] refs #1164 ogRaiseError function call correction --- client/lib/engine/bin/SystemLib.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/client/lib/engine/bin/SystemLib.py b/client/lib/engine/bin/SystemLib.py index 66f0664..740eb35 100755 --- a/client/lib/engine/bin/SystemLib.py +++ b/client/lib/engine/bin/SystemLib.py @@ -12,6 +12,7 @@ from contextlib import redirect_stdout, redirect_stderr import ogGlobals import StringLib +import SystemLib #NODEBUGFUNCTIONS, OGIMG, OG_ERR_CACHESIZE, OG_ERR_NOTCACHE, OG_ERR_NOTWRITE, OG_ERR_FILESYS #OG_ERR_REPO, OG_ERR_NOTOS, OG_ERR_NOGPT, OG_ERR_OUTOFLIMIT, OG_ERR_IMAGE, OG_ERR_CACHE @@ -285,7 +286,11 @@ def ogCheckProgram(*args): # Error si no se recibe 1 parĂ¡metro. if len(args) != 1: - ogRaiseError(OG_ERR_FORMAT) + SystemLib.ogRaiseError( + "session", + ogGlobals.OG_ERR_FORMAT, + f"Error: {ogGlobals.lang.MSG_ERR_FORMAT} {FUNCNAME} \"str_program ...\"" + ) return PERROR = 0 @@ -296,7 +301,11 @@ def ogCheckProgram(*args): PLOG += f" {i}" if PERROR == 1: - ogRaiseError(OG_ERR_NOTEXEC, PLOG) + SystemLib.ogRaiseError( + "session", + ogGlobals.OG_ERR_NOTEXEC, + f"Error: {PLOG}", + ) return else: return 0