mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
✨ Adjust error reporting thresholds
This commit is contained in:
parent
3dc629d2ad
commit
d1fba8982e
2 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@
|
||||||
(when-let [data (some-> data (dissoc ::s/problems ::s/value ::s/spec ::sm/explain :hint))]
|
(when-let [data (some-> data (dissoc ::s/problems ::s/value ::s/spec ::sm/explain :hint))]
|
||||||
{:data (pp/pprint-str data :width 200)})
|
{:data (pp/pprint-str data :width 200)})
|
||||||
|
|
||||||
(when-let [explain (ex/explain data {:level 10 :length 50})]
|
(when-let [explain (ex/explain data {:level 8 :length 20})]
|
||||||
{:explain explain})))))
|
{:explain explain})))))
|
||||||
|
|
||||||
(defn error-record?
|
(defn error-record?
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
explain? true
|
explain? true
|
||||||
chain? true
|
chain? true
|
||||||
data-length 10
|
data-length 10
|
||||||
data-level 5}}]
|
data-level 4}}]
|
||||||
|
|
||||||
(letfn [(print-trace-element [^StackTraceElement e]
|
(letfn [(print-trace-element [^StackTraceElement e]
|
||||||
(let [class (.getClassName e)
|
(let [class (.getClassName e)
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
(-> (ex-message cause)
|
(-> (ex-message cause)
|
||||||
(str/lines)
|
(str/lines)
|
||||||
(first)
|
(first)
|
||||||
(str/prune 100)))
|
(str/prune 130)))
|
||||||
|
|
||||||
(when-let [^StackTraceElement e (first (.getStackTrace ^Throwable cause))]
|
(when-let [^StackTraceElement e (first (.getStackTrace ^Throwable cause))]
|
||||||
(printf " (%s:%d)" (or (.getFileName e) "") (.getLineNumber e)))
|
(printf " (%s:%d)" (or (.getFileName e) "") (.getLineNumber e)))
|
||||||
|
|
Loading…
Reference in a new issue