Skip to content

Commit

Permalink
Merge pull request #215 from Tyba-Energy/jarrett-improve-batch-resolv…
Browse files Browse the repository at this point in the history
…er-exception

Add important information to ex info
  • Loading branch information
wilkerlucio authored Aug 2, 2024
2 parents 878febb + 0edc8b2 commit 4093b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/com/wsscode/pathom3/connect/runner.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,8 @@
(merge-entity-to-root-data env env' node)))
(do
(if (not= (count inputs) (count responses))
(throw (ex-info "Batch results must be a sequence and have the same length as the inputs." {})))
(throw (ex-info "Batch results must be a sequence and have the same length as the inputs." {:inputs inputs
:op-name batch-op})))

(doseq [[{env' ::env
::pcp/keys [node]
Expand Down

0 comments on commit 4093b90

Please sign in to comment.