Skip to content

Commit

Permalink
ASYNC: Add handling of Aborts in a thread that do not cause an RTE
Browse files Browse the repository at this point in the history
This happens e.g. when AbortOnValue is encountered that sets only
V_AbortCode.

The error handling still prioritizes RTE error codes.
  • Loading branch information
MichaelHuth committed Sep 4, 2024
1 parent 43dc83d commit 0a5a33a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Packages/MIES/MIES_Async.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ threadsafe static Function/DF ASYNC_Run_Worker(DFREF dfr)
catch
errmsg = GetRTErrMessage()
err = ClearRTError()
if(!err && V_AbortCode)
err = V_AbortCode
errmsg = GetErrMessage(err)
endif
endtry

if(IsFreeDatafolder(dfrOut))
Expand Down

0 comments on commit 0a5a33a

Please sign in to comment.