Log error message if token value cannot be parsed

This commit is contained in:
Vitaliy Vlasov 2018-03-12 17:55:25 +02:00
parent a7e2b60d83
commit ca5b7d7e7b
No known key found for this signature in database
GPG Key ID: A7D57C347F2B2964
1 changed files with 4 additions and 1 deletions

View File

@ -149,7 +149,10 @@
(let [format-float (fn [balance]
(try
(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
:user_avatar_url :avatar-url
:issue_title :issue-title