Skip to content

Commit

Permalink
Better error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Aug 16, 2023
1 parent ab389d9 commit 819645b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gpm/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Msg( [[
module( "gpm", package.seeall )

StartTime = SysTime()
VERSION = "1.45.2"
VERSION = "1.46.0"

if not Colors then
Realm = "unknown"
Expand Down
10 changes: 10 additions & 0 deletions lua/gpm/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ do
environment.hook = link

function link.Add( eventName, identifier, ... )
ArgAssert( eventName, 1, "string" )
if autoNames and type( identifier ) == "string" then
identifier = self:GetIdentifier( identifier )
end
Expand All @@ -595,6 +596,7 @@ do
end

function link.Remove( eventName, identifier, ... )
ArgAssert( eventName, 1, "string" )
if autoNames and type( identifier ) == "string" then
identifier = self:GetIdentifier( identifier )
end
Expand All @@ -620,6 +622,7 @@ do
for key, func in pairs( timer ) do
if key == "Destroy" or key == "Remove" or key == "Simple" then continue end
link[ key ] = function( identifier, ... )
ArgAssert( identifier, 1, "string" )
if autoNames then
identifier = self:GetIdentifier( identifier )
end
Expand All @@ -630,6 +633,7 @@ do
end

local function removeFunction( identifier, ... )
ArgAssert( identifier, 1, "string" )
if autoNames then
identifier = self:GetIdentifier( identifier )
end
Expand Down Expand Up @@ -695,11 +699,13 @@ do
environment.concommand = link

function link.Add( name, ... )
ArgAssert( name, 1, "string" )
data[ name ] = true
return concommand.Add( name, ... )
end

function link.Remove( name, ... )
ArgAssert( name, 1, "string" )
data[ name ] = nil
return concommand.Remove( name, ... )
end
Expand All @@ -721,6 +727,7 @@ do
environment.net = link

function link.Receive( messageName, ... )
ArgAssert( messageName, 1, "string" )
if autoNames then
messageName = self:GetIdentifier( messageName )
end
Expand All @@ -730,6 +737,7 @@ do
end

function link.Start( messageName, ... )
ArgAssert( messageName, 1, "string" )
if autoNames then
messageName = self:GetIdentifier( messageName )
end
Expand All @@ -747,6 +755,7 @@ do
environment.util = link

function link.AddNetworkString( messageName, ... )
ArgAssert( messageName, 1, "string" )
if autoNames then
messageName = self:GetIdentifier( messageName )
end
Expand All @@ -772,6 +781,7 @@ do
environment.properties = link

function link.Add( name, ... )
ArgAssert( name, 1, "string" )
if autoNames then
name = self:GetIdentifier( name )
end
Expand Down

0 comments on commit 819645b

Please sign in to comment.