Skip to content

Commit

Permalink
FIX: better SECURE error message with incorrectly formatted input block
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Mar 31, 2020
1 parent 40083e5 commit 3f9ac42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mezz/mezz-secure.r
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ secure: function/with [

; Set each policy target separately:
foreach [target pol] policy [
assert/type [target [word! file! url!] pol [block! word! integer!]]
try/except [
assert/type [target [word! file! url!] pol [block! word! integer!]]
][ cause-error 'access 'security-error reduce [target pol] ]
set-policy target make-policy target pol pol-obj
]

Expand Down

0 comments on commit 3f9ac42

Please sign in to comment.