File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -287,8 +287,20 @@ enforceVerifierDef = defRNative
287
287
unless inCap $
288
288
failTx (getInfo i) $ " enforce-verifier must be run in a capability"
289
289
verifierInScope <- anyCapabilityBeingEvaluated verCaps
290
+ mode <- view eeMode
290
291
if verifierInScope then return (toTerm True )
291
- else failTx (getInfo i) $ " Verifier failure " <> pretty verName <> " : not in scope"
292
+ else case mode of
293
+ Transactional ->
294
+ failTx (getInfo i) $ " Verifier failure " <> pretty verName <> " : not in scope"
295
+ Local -> do
296
+ capsBeingEvaluated <- use evalUserCapabilitiesBeingEvaluated
297
+ failTx (getInfo i) $ " Verifier failure " <> pretty verName <> " : " <> vsep
298
+ [ " Capabilities being evaluated:"
299
+ , pretty (S. toList capsBeingEvaluated)
300
+ , " Capabilities associated to this verifier:"
301
+ , pretty (S. toList verCaps)
302
+ ]
303
+
292
304
Nothing ->
293
305
failTx (getInfo i) $ " Verifier failure " <> pretty verName <> " : not in transaction"
294
306
_ -> argsError i as
You can’t perform that action at this time.
0 commit comments