Skip to content

Commit

Permalink
Replaced legacy method of outputting a package startup error
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Sep 8, 2023
1 parent 95c4ae5 commit 2e634ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/gpm/import.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,11 @@ do

local ok, message = gpm.CanBeInstalled( metadata, source )
if not ok then
logger:Error( "Package '%s' import failed, %s.", importPath, message )
return
return promise.Reject( message )
end

if autorun and not metadata.autorun then
logger:Debug( "Package '%s' autorun restricted.", importPath )
return
return promise.Reject( "autorun restricted." )
end

task = gpm.SourceImport( sourceName, importPath )
Expand Down

0 comments on commit 2e634ab

Please sign in to comment.