Commit 01f3e75c authored by John Spikowski's avatar John Spikowski

Extension module error message bug fix - Author: Paeryn@RPi

parent 7f884248
/*
/*
FILE: scribacmd.c
HEADER: scribacmd.h
......@@ -106,7 +106,7 @@ SbData RetVale;*/
iEPreprocIndex = 0; /* no external preprocessor by default */
iIPreprocIndex = 0; /* no internal preprocessor by default */
pszPreprocessedFileName = NULL;
*pszEPreproc = NULL;
*pszEPreproc = NULL;
*pszIPreproc = NULL;
giveusage = 0; /* assume the command line is correct, we need not display usage and stop */
binarycode = 0; /* input is not binary by default */
......@@ -500,9 +500,10 @@ include \"test.bas\"\
#if _DEBUG
testa_Assert0x80();
#endif
if( iError > 0 )
report_report(stderr,"",0,iError,REPORT_ERROR,&iErrorCounter,NULL,&fErrorFlags);
else
if( iError > 0 ){
char *pszModuleError = pProgram->pEXE ? pProgram->pEXE->pszModuleError : NULL;
report_report(stderr,"",0,iError,REPORT_ERROR,&iErrorCounter,pszModuleError,&fErrorFlags);
}else
iError = -iError;
ERREXIT;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment