mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-05 22:50:23 +00:00
Patch to correct IDE error messages
IDE error messages would give invalid reports if the program encountered an error on the automatically included QB64 virtual keyboard files. This should correct that and have the IDE reporting the proper messages once again.
This commit is contained in:
parent
e26f63f8c1
commit
117f12e4d4
|
@ -12074,7 +12074,13 @@ END
|
||||||
errmes: 'set a$ to message
|
errmes: 'set a$ to message
|
||||||
IF Error_Happened THEN a$ = Error_Message: Error_Happened = 0
|
IF Error_Happened THEN a$ = Error_Message: Error_Happened = 0
|
||||||
layout$ = "": layoutok = 0 'invalidate layout
|
layout$ = "": layoutok = 0 'invalidate layout
|
||||||
|
|
||||||
|
IF forceIncludingFile THEN 'If we're to the point where we're adding the automatic QB64 includes, we don't need to report the $INCLUDE information
|
||||||
|
IF INSTR(a$, "END SUB/FUNCTION before") THEN a$ = "SUB without END SUB" 'Just a simple rewrite of the error message to be less confusing for SUB/FUNCTIONs
|
||||||
|
ELSE 'We want to let the user know which module the error occurred in
|
||||||
IF inclevel > 0 THEN a$ = a$ + incerror$
|
IF inclevel > 0 THEN a$ = a$ + incerror$
|
||||||
|
END IF
|
||||||
|
|
||||||
IF idemode THEN
|
IF idemode THEN
|
||||||
ideerrorline = linenumber
|
ideerrorline = linenumber
|
||||||
idemessage$ = a$
|
idemessage$ = a$
|
||||||
|
|
Loading…
Reference in a new issue