Changeset 3720


Ignore:
Timestamp:
Nov 13, 2019, 11:12:06 PM (5 years ago)
Author:
Andreas Schnellbacher
Message:
  • Improved Etpm error messages.
  • Made defc Etpm work again.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/netlabs/macros/recompile.e

    r3719 r3720  
    179179; Doesn't respect options from the commandline, like /v or /e <logfile>.
    180180defc Et, Etpm
    181    rc = Etpm( arg( 1), '')
     181   rc = Etpm( arg( 1), EtpmErrorMsg)  -- EtpmErrorMsg is not used here
    182182
    183183defproc Etpm( EtpmArgs, var EtpmErrorMsg)
     
    249249      deltalen = length( Os2Cmd) - 224
    250250      if deltalen > 0 then
    251          sayerror 'Command: 'Os2Cmd
    252          sayerror 'Error: command is 'deltalen' chars too long. Shorten filename or use an OS/2 or EPM shell window.'
     251         'SayError Command: 'Os2Cmd
     252         EtpmErrorMsg = 'Error: command is 'deltalen' chars too long. Shorten filename or use an OS/2 or EPM shell window.'
     253         'SayError' EtpmErrorMsg
    253254         rc = -263  -- sayerror( 'Invalid argument')
    254255         leave
     
    262263      if rc = 0 then
    263264         refresh
    264          sayerror COMP_COMPLETED__MSG': 'BaseName
     265         EtpmErrorMsg = COMP_COMPLETED__MSG': 'BaseName
     266
    265267      elseif rc = -2 then
    266          sayerror CANT_FIND_PROG__MSG EtpmCmd
    267          stop
     268         EtpmErrorMsg = CANT_FIND_PROG__MSG EtpmCmd
    268269      elseif rc = 41 then
    269          sayerror 'ETPM.EXE:' CANT_OPEN_TEMP__MSG '"'TempFile'"'
    270          stop
     270         EtpmErrorMsg = 'ETPM.EXE:' CANT_OPEN_TEMP__MSG '"'TempFile'"'
    271271      elseif Exist( TempFile) then
    272272         EtpmErrorMsg = Ec_Position_On_Error( TempFile)
    273          'SayError' EtpmErrorMsg
    274273         rc = etpmrc
    275274      else
    276          sayerror 'ETPM.EXE returned rc = 'etpmrc' for "'Os2Cmd'"'
     275         EtpmErrorMsg = 'ETPM.EXE returned rc = 'etpmrc' for "'Os2Cmd'"'
    277276         rc = etpmrc
     277      endif
     278      if EtpmErrorMsg <> '' then
     279         'SayError' EtpmErrorMsg
    278280      endif
    279281;      call erasetemp( TempFile)
     
    310312      parse value textline( .last - 1) with 'line= ' Line
    311313      parse value textline( .last - 2) with 'filename=' Filename
     314      Col      = strip( Col)
     315      Line     = strip( Line)
     316      Filename = strip( Filename)
     317      EtpmErrorMsg = EtpmErrorMsg' on ('Line','Col') in 'Filename
    312318      'xcom q'
    313319      'e 'Filename               -- not xcom here, respect user's window style
Note: See TracChangeset for help on using the changeset viewer.