Skip to content

Commit

Permalink
Limit warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
undyamon committed Nov 29, 2023
1 parent 1a161da commit 6648999
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/tasks/module/cargo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ end

---@return table: List of functions for each cargo subcommand that return a task table.
local function get_cargo_subcommands()
local cmd = 'cargo'
local cargo_subcommands = {}

local ok, job = pcall(Job.new, Job, {
Expand All @@ -87,7 +86,7 @@ local function get_cargo_subcommands()
enabled_recording = true,
})
if not ok then
utils.notify(job, vim.log.levels.WARN)
utils.notify("Unable to execute 'cargo' command", vim.log.levels.WARN)
return {}
end
job:sync()
Expand Down

0 comments on commit 6648999

Please sign in to comment.