Escape newlines in backtrace frames
And quote strings
This commit is contained in:
parent
c7588bacdf
commit
e459842a9b
1 changed files with 3 additions and 1 deletions
|
@ -262,7 +262,9 @@ BODY will be run when this dispatcher is called."
|
||||||
(print! (bold "Backtrace:"))
|
(print! (bold "Backtrace:"))
|
||||||
(print-group!
|
(print-group!
|
||||||
(dolist (frame (seq-take backtrace 10))
|
(dolist (frame (seq-take backtrace 10))
|
||||||
(print! "%0.76s" frame)))
|
(print!
|
||||||
|
"%0.74s" (replace-regexp-in-string
|
||||||
|
"[\n\r]" "\\\\n" (format "%S" frame)))))
|
||||||
(with-temp-file doom-cli-log-error-file
|
(with-temp-file doom-cli-log-error-file
|
||||||
(insert "# -*- lisp-interaction -*-\n")
|
(insert "# -*- lisp-interaction -*-\n")
|
||||||
(insert "# vim: set ft=lisp:\n")
|
(insert "# vim: set ft=lisp:\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue