Skip to content

Instantly share code, notes, and snippets.

View jackdotink's full-sized avatar

Jack jackdotink

  • 22:02 (UTC -05:00)
View GitHub Profile
-- Licensed under the MIT License, Copyright (c) 2024 jack.ink
local function resume_with_error_check(thread: thread, ...: any): ()
local success, message = coroutine.resume(thread, ...)
if not success then
print(string.char(27) .. "[31m" .. message)
end
end