|
75 | 75 | (erase-buffer)
|
76 | 76 | (insert-file-contents tmpf)
|
77 | 77 | (rust--format-fix-rustfmt-buffer (buffer-name buf))
|
78 |
| - (error "Rustfmt could not format some lines, see *rustfmt* buffer for details")) |
| 78 | + (error "Rustfmt could not format some lines, see %s buffer for details" |
| 79 | + rust-rustfmt-buffername)) |
79 | 80 | (t
|
80 | 81 | (erase-buffer)
|
81 | 82 | (insert-file-contents tmpf)
|
82 | 83 | (rust--format-fix-rustfmt-buffer (buffer-name buf))
|
83 |
| - (error "Rustfmt failed, see *rustfmt* buffer for details")))) |
| 84 | + (error "Rustfmt failed, see %s buffer for details" |
| 85 | + rust-rustfmt-buffername)))) |
84 | 86 | (delete-file tmpf)))))
|
85 | 87 |
|
86 | 88 | ;; Since we run rustfmt through stdin we get <stdin> markers in the
|
@@ -118,7 +120,7 @@ rustfmt complain in the echo area."
|
118 | 120 | ;; buffer it is from.
|
119 | 121 | (let ((rustfmt (get-buffer rust-rustfmt-buffername)))
|
120 | 122 | (if (not rustfmt)
|
121 |
| - (message "No *rustfmt*, no problems.") |
| 123 | + (message "No %s, no problems." rust-rustfmt-buffername) |
122 | 124 | (let ((target-buffer (with-current-buffer rustfmt
|
123 | 125 | (save-excursion
|
124 | 126 | (goto-char (point-min))
|
@@ -361,7 +363,8 @@ Return the created process."
|
361 | 363 | ;; KLDUGE: re-run the error handlers -- otherwise message area
|
362 | 364 | ;; would show "Wrote ..." instead of the error description.
|
363 | 365 | (or (rust--format-error-handler)
|
364 |
| - (message "rustfmt detected problems, see *rustfmt* for more.")))))) |
| 366 | + (message "rustfmt detected problems, see %s for more." |
| 367 | + rust-rustfmt-buffername)))))) |
365 | 368 |
|
366 | 369 | ;;; _
|
367 | 370 | (provide 'rust-rustfmt)
|
|
0 commit comments