#9 Incorrect syntax error msg - missing ')'

closed
None
5
2002-08-19
2002-01-03
Anonymous
No

The following code:

/****start***/
if 2 = 2 then
die('adfadaf'
exit(0);

die:
say 'died'
exit(255)
/****end***/

Displays the message:

Error 14 running "C:\tmp\2.rex", line 2: Incomplete
DO/SELECT/IF
Error 14.3: THEN requires a following instruction

The actual problem is a missing ")", now on a very
small sample such as this it is not hard to spot the
problem, but in my 360K monster it is not that easy.
Note the indicated line does not normally point to
the missing bracket line.

Discussion

  • Mark Hessling
    Mark Hessling
    2002-04-26

    • assigned_to: nobody --> rexx
     
  • Logged In: YES
    user_id=262734

    This is a bug. Error message 36 has to be thrown.
    A fix will be applied in the next official version.

     
  • Mark Hessling
    Mark Hessling
    2002-08-19

    Logged In: YES
    user_id=86185

    Confirmed fixed. Status set to pending until 3.1 release.

     
  • Mark Hessling
    Mark Hessling
    2002-08-19

    • assigned_to: rexx --> fgc
    • status: open --> closed