Log error message if token value cannot be parsed
This commit is contained in:
parent
a7e2b60d83
commit
ca5b7d7e7b
|
@ -149,7 +149,10 @@
|
||||||
(let [format-float (fn [balance]
|
(let [format-float (fn [balance]
|
||||||
(try
|
(try
|
||||||
(format "%.2f" (float balance))
|
(format "%.2f" (float balance))
|
||||||
(catch Exception ex "0.00")))
|
(catch Exception ex
|
||||||
|
(do
|
||||||
|
(log/error "Failed to convert token value:" balance)
|
||||||
|
"0.00"))))
|
||||||
renames {:user_name :display-name
|
renames {:user_name :display-name
|
||||||
:user_avatar_url :avatar-url
|
:user_avatar_url :avatar-url
|
||||||
:issue_title :issue-title
|
:issue_title :issue-title
|
||||||
|
|
Loading…
Reference in New Issue