mirror of
https://github.com/taoensso/telemere.git
synced 2025-12-18 10:11:10 +00:00
[mod] Tweak format-error spacing
Some checks failed
Graal tests / test (17, macOS-latest) (push) Has been cancelled
Graal tests / test (17, ubuntu-latest) (push) Has been cancelled
Graal tests / test (17, windows-latest) (push) Has been cancelled
Main tests / tests (17, ubuntu-latest) (push) Has been cancelled
Main tests / tests (19, ubuntu-latest) (push) Has been cancelled
Main tests / tests (21, ubuntu-latest) (push) Has been cancelled
Some checks failed
Graal tests / test (17, macOS-latest) (push) Has been cancelled
Graal tests / test (17, ubuntu-latest) (push) Has been cancelled
Graal tests / test (17, windows-latest) (push) Has been cancelled
Main tests / tests (17, ubuntu-latest) (push) Has been cancelled
Main tests / tests (19, ubuntu-latest) (push) Has been cancelled
Main tests / tests (21, ubuntu-latest) (push) Has been cancelled
This commit is contained in:
parent
6fb18bd3b9
commit
7603ae2fcf
2 changed files with 4 additions and 4 deletions
|
|
@ -493,11 +493,11 @@
|
||||||
{:keys [chain trace]} em]
|
{:keys [chain trace]} em]
|
||||||
|
|
||||||
(let [s+cause (enc/sb-appender sb (str nls "Caused: "))]
|
(let [s+cause (enc/sb-appender sb (str nls "Caused: "))]
|
||||||
(s+ " Root: ")
|
(s+ "Root: ")
|
||||||
(doseq [{:keys [type msg data]} (rseq chain)]
|
(doseq [{:keys [type msg data]} (rseq chain)]
|
||||||
(s+cause type " - " msg)
|
(s+cause type " - " msg)
|
||||||
(when data
|
(when data
|
||||||
(s+ nl " data: " (enc/pr-edn* data)))))
|
(s+ nl "data: " (enc/pr-edn* data)))))
|
||||||
|
|
||||||
(when trace
|
(when trace
|
||||||
(s+ nl nl "Root stack trace:" nl)
|
(s+ nl nl "Root stack trace:" nl)
|
||||||
|
|
|
||||||
|
|
@ -836,8 +836,8 @@
|
||||||
(testing "format-error-fn"
|
(testing "format-error-fn"
|
||||||
(let [ex2-str ((utils/format-error-fn) ex2)]
|
(let [ex2-str ((utils/format-error-fn) ex2)]
|
||||||
[(is (enc/str-starts-with? ex2-str
|
[(is (enc/str-starts-with? ex2-str
|
||||||
#?(:clj " Root: clojure.lang.ExceptionInfo - Ex1\n data: {:k1 \"v1\"}\n\nCaused: clojure.lang.ExceptionInfo - Ex2\n data: {:k2 \"v2\"}\n\nRoot stack trace:\n"
|
#?(:clj "Root: clojure.lang.ExceptionInfo - Ex1\ndata: {:k1 \"v1\"}\n\nCaused: clojure.lang.ExceptionInfo - Ex2\ndata: {:k2 \"v2\"}\n\nRoot stack trace:\n"
|
||||||
:cljs " Root: cljs.core/ExceptionInfo - Ex1\n data: {:k1 \"v1\"}\n\nCaused: cljs.core/ExceptionInfo - Ex2\n data: {:k2 \"v2\"}\n\nRoot stack trace:\n")))
|
:cljs "Root: cljs.core/ExceptionInfo - Ex1\ndata: {:k1 \"v1\"}\n\nCaused: cljs.core/ExceptionInfo - Ex2\ndata: {:k2 \"v2\"}\n\nRoot stack trace:\n")))
|
||||||
|
|
||||||
(is (enc/str-contains? ex2-str "Root stack trace:"))
|
(is (enc/str-contains? ex2-str "Root stack trace:"))
|
||||||
(is (enc/str-contains? ex2-str "invoke") "Root stack trace includes content")]))
|
(is (enc/str-contains? ex2-str "invoke") "Root stack trace includes content")]))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue