aboutsummaryrefslogtreecommitdiff
path: root/lua/cmake-explorer/runner.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/cmake-explorer/runner.lua')
-rw-r--r--lua/cmake-explorer/runner.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/cmake-explorer/runner.lua b/lua/cmake-explorer/runner.lua
index f9c3d84..ca596ac 100644
--- a/lua/cmake-explorer/runner.lua
+++ b/lua/cmake-explorer/runner.lua
@@ -20,6 +20,11 @@ function M.start(command)
on_exit = vim.schedule_wrap(function(_, code, signal)
if code == 0 and signal == 0 and command.after_success then
command.after_success()
+ else
+ vim.notify(
+ "Code " .. tostring(code) .. ": " .. command.cmd .. " " .. table.concat(command.args, " "),
+ vim.log.levels.ERROR
+ )
end
end),
})