mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -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))]
|
||||
{: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})))))
|
||||
|
||||
(defn error-record?
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
explain? true
|
||||
chain? true
|
||||
data-length 10
|
||||
data-level 5}}]
|
||||
data-level 4}}]
|
||||
|
||||
(letfn [(print-trace-element [^StackTraceElement e]
|
||||
(let [class (.getClassName e)
|
||||
|
@ -127,7 +127,7 @@
|
|||
(-> (ex-message cause)
|
||||
(str/lines)
|
||||
(first)
|
||||
(str/prune 100)))
|
||||
(str/prune 130)))
|
||||
|
||||
(when-let [^StackTraceElement e (first (.getStackTrace ^Throwable cause))]
|
||||
(printf " (%s:%d)" (or (.getFileName e) "") (.getLineNumber e)))
|
||||
|
|
Loading…
Reference in a new issue