Skip to content

Commit 06f1363

Browse files
committed
fix: warn notification when try to stop non-existing job
1 parent 10617d7 commit 06f1363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/love2d/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ end
4747

4848
---Stop the running project
4949
love2d.stop = function()
50-
if not love2d.job.id then
51-
vim.notify("No LÖVE project running.", vim.log.levels.ERROR)
50+
if not love2d.job or not love2d.job.id then
51+
vim.notify("No LÖVE project running.", vim.log.levels.WARN)
5252
return
5353
end
5454
vim.notify("Stop LÖVE project")

0 commit comments

Comments
 (0)