Skip to content

Commit

Permalink
Fix logging of source-url
Browse files Browse the repository at this point in the history
  • Loading branch information
superstructor committed Feb 24, 2021
1 parent 9eb22d3 commit 51a0d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/re_com/debug.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@

(defn log-validate-args-error
[element problems component-name {:keys [file line] :as src}]
(let [source-url (when root-url-for-compiler-output (str root-url-for-compiler-output file ":" line))]
(let [source-url (when (not (empty? root-url-for-compiler-output)) (str root-url-for-compiler-output file ":" line))]
(js/console.group (str "%c" collision-icon " re-com validation error ") h1-style)
(if src
(if source-url
Expand Down

0 comments on commit 51a0d66

Please sign in to comment.