File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ do*: func [
84
84
"Date:" select hdr 'date
85
85
]
86
86
87
- also
87
+ set /any 'value try [
88
88
; Eval the block or make the module, returned
89
89
either mod? [ ; Import the module and set the var
90
90
spec: reduce [hdr data do-needs/no-user hdr]
@@ -95,8 +95,10 @@ do*: func [
95
95
intern data ; Bind the user script
96
96
catch /quit either var [[do/next data var]] [data]
97
97
]
98
- ; Restore system/script and the dir
99
- all [system/script: :scr dir change-dir dir]
98
+ ]
99
+ ; Restore system/script and the dir
100
+ all [system/script: :scr dir change-dir dir]
101
+ value
100
102
]
101
103
]
102
104
Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ Rebol [
54
54
55
55
===end-group===
56
56
57
+ ===start-group=== "do script"
58
+ --test-- "script with error"
59
+ ;@@ https://github.com/rebol/rebol-issues/issues/2374
60
+ dir: what-dir
61
+ --assert error? do %units/files/error.r3
62
+ --assert dir = what-dir
63
+ ===end-group===
64
+
57
65
===start-group=== "do function"
58
66
59
67
--test-- "do-func-1"
You can’t perform that action at this time.
0 commit comments