diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-04-09 14:38:32 +0200 |
|---|---|---|
| committer | Johannes Altmanninger <aclopte@gmail.com> | 2022-04-09 15:36:02 +0200 |
| commit | a0477b10163e210df4803943794ab1ff7da2c429 (patch) | |
| tree | 37e06af1703af264ef0e2460c89d6e3d338792f4 /src/shared_string.cc | |
| parent | eae8ea8a548ef2bf9d02d542fe58b95dfce186a5 (diff) | |
rc format: restore in-client error when formatcmd fails
Commit 5b1f9255 (rc: Use the standard `fail` command to report errors,
2019-11-14) replaced uses of "echo -markup {Error}" with "fail".
This made format-buffer do
echo "eval -client $kak_client %{ fail }" | kak -p $kak_session
Unfortunately "fail" fails in the client spawned by "kak -p" and not
in $kak_client where the user would see the message. Correct this.
While at it, clarify the error message, so users immediately know
that the number is the exit code.
Fixes #3254
Diffstat (limited to 'src/shared_string.cc')
0 files changed, 0 insertions, 0 deletions
