Skip to content

Commit

Permalink
Merge pull request #201 from cbx/main
Browse files Browse the repository at this point in the history
include failing key in smart map fetch error
  • Loading branch information
wilkerlucio authored Jul 27, 2023
2 parents 31af3d1 + d448ccf commit 2e542fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/com/wsscode/pathom3/interface/smart_map.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

(when-let [error (and (refs/kw-identical? (get env ::error-mode) ::error-mode-loud)
(p.error/attribute-error @entity-tree* k))]
(throw (ex-info "Smart Map fetch error" error)))
(throw (ex-info (str "Smart Map fetch error '" k "'") error)))

(wrap-smart-map env (get @entity-tree* k default-value)))))))

Expand Down

0 comments on commit 2e542fb

Please sign in to comment.