Skip to content

Commit 9026d80

Browse files
committed
Add error documentation
1 parent cb7e0f1 commit 9026d80

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Overture.luau

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ end
115115
@param Index -- The name of the ModuleScript
116116
@param NamedImports -- When provided, returns the named variables instead of the entire ModuleScript
117117
@return any?
118+
119+
@error The library `Index` does not exist! -- Thrown on the server, if no ModuleScript exists with the given name.
118120
]=]
119121
function Overture:LoadLibrary(Index: string, NamedImports: {string}?)
120122
if Libraries[Index] then

0 commit comments

Comments
 (0)