File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 18
18
(def ^:private AGENT_EXECUTOR " native-agent" )
19
19
20
20
(defmacro in-context
21
- " Executes body in safe agent context for native configuration generation. See docs for more."
21
+ " Executes body in safe agent context for native configuration generation.
22
+ Catches all errors thrown during execution."
22
23
[& body]
23
24
(if-not (System/getenv " USE_AGENT_CONTEXT" )
24
25
nil
25
26
`(when (= (System/getProperty " executor" ) @#'fierycod.holy-lambda.agent/AGENT_EXECUTOR)
26
- (try (do ~@body)
27
- (catch Exception err#
28
- (println " Exception in agent-context: " err#))))))
27
+ (try
28
+ (do ~@body)
29
+ (catch Exception err#
30
+ (println " Exception in agent-context: " err#))))))
29
31
30
32
(defn- agents-payloads->invoke-map
31
33
[]
You can’t perform that action at this time.
0 commit comments