oops
This commit is contained in:
@@ -83,7 +83,7 @@ local result = require "ThirdPartyAuthor.ThirdPartyMod.ThirdPartyScript"
|
|||||||
print(result)
|
print(result)
|
||||||
|
|
||||||
-- Same as above, except any error is handled.
|
-- Same as above, except any error is handled.
|
||||||
local ok, result = require "ThirdPartyAuthor.ThirdPartyMod.ThirdPartyScript"
|
local ok, result = pcall(require, "ThirdPartyAuthor.ThirdPartyMod.ThirdPartyScript")
|
||||||
-- `ok` is true if no error, false if there is an error.
|
-- `ok` is true if no error, false if there is an error.
|
||||||
if ok then
|
if ok then
|
||||||
-- No error, print our result!
|
-- No error, print our result!
|
||||||
|
|||||||
Reference in New Issue
Block a user