File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -311,12 +311,19 @@ expandThrowInternalFailures[ expr_ ] :=
311
311
ReplaceAll [
312
312
HoldPattern [ e $: lhs ] :> rhs ,
313
313
HoldPattern @ Enclose [ eval_ , throwInternalFailure , $enclosure ] :>
314
- Enclose [ eval , throwInternalFailure [ e $, ##1 ] & , $enclosure ]
314
+ Module [ { eh = HoldComplete @ e $ }, Enclose [ eval , internalFailureFunction @ eh , $enclosure ] ]
315
315
]
316
316
];
317
317
318
318
expandThrowInternalFailures // endDefinition ;
319
319
320
+ (* ::**************************************************************************************************************:: *)
321
+ (* ::Subsubsection::Closed:: *)
322
+ (*internalFailureFunction*)
323
+ internalFailureFunction // ClearAll ;
324
+ internalFailureFunction // Attributes = { HoldAllComplete };
325
+ internalFailureFunction [ held_ ][ args___ ] := Replace [ held , HoldComplete [ e_ ] :> throwInternalFailure [ e , args ] ];
326
+
320
327
(* ::**************************************************************************************************************:: *)
321
328
(* ::Subsubsection::Closed:: *)
322
329
(*addEnclosureTags*)
You can’t perform that action at this time.
0 commit comments