We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b3f000 + 51aeb3e commit 35f6719Copy full SHA for 35f6719
extensions/_coresetup/init.lua
@@ -297,6 +297,10 @@ coroutine.applicationYield = hs.coroutineApplicationYield
297
--- * If the Spoon provides documentation, it will be loaded by made available in hs.docs
298
--- * To learn how to distribute your own code as a Spoon, see https://github.com/Hammerspoon/hammerspoon/blob/master/SPOON.md
299
hs.loadSpoon = function (name, global)
300
+ if name == "" then
301
+ hs.showError("hs.loadSpoon() called with no Spoon name")
302
+ end
303
+
304
if _G["spoon"] == nil then
305
_G["spoon"] = {}
306
end
0 commit comments