summaryrefslogtreecommitdiff
path: root/rc/detection
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2019-11-14 08:32:55 +0100
committerFrank LENORMAND <lenormf@gmail.com>2019-11-14 08:32:55 +0100
commit5b1f9255a1bf87b94d1ccb208ba676fbb4ef64ec (patch)
tree6601ed8902a6aaa28632a26a5ba18db70137401f /rc/detection
parenta7d3976a1002a80c4e5a17c989921025ded89450 (diff)
rc: Use the standard `fail` command to report errors
Merely using `echo` with markup doesn't log errors in the debug buffers, and is also less readable.
Diffstat (limited to 'rc/detection')
-rw-r--r--rc/detection/editorconfig.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/detection/editorconfig.kak b/rc/detection/editorconfig.kak
index f59e3bb7..c28e3696 100644
--- a/rc/detection/editorconfig.kak
+++ b/rc/detection/editorconfig.kak
@@ -13,7 +13,7 @@ hook global BufCreate .*[.](editorconfig) %{
define-command editorconfig-load -params ..1 -docstring "editorconfig-load [file]: set formatting behavior according to editorconfig" %{
evaluate-commands %sh{
- command -v editorconfig >/dev/null 2>&1 || { printf %s\\n 'echo -markup "{Error}editorconfig could not be found"'; exit 1; }
+ command -v editorconfig >/dev/null 2>&1 || { echo "fail editorconfig could not be found"; exit 1; }
file="${1:-$kak_buffile}"
case $file in