diff --git a/sys/apis/http/pastebin.lua b/sys/apis/http/pastebin.lua index 89676ba..a6cf60b 100644 --- a/sys/apis/http/pastebin.lua +++ b/sys/apis/http/pastebin.lua @@ -20,7 +20,7 @@ end -- Download the contents of a paste local function download(code) - if type(url) ~= "string" then + if type(code) ~= "string" then error("bad argument #1 (expected string, got " .. type(code) .. ")", 2) end