Skip to content

Commit

Permalink
Assert pkey.read for better error messages when failing to parse priv…
Browse files Browse the repository at this point in the history
…ateKey file

Helps with debugging luvit#261
  • Loading branch information
RyanGst committed Aug 11, 2020
1 parent 55f47c6 commit a6f8aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ local function makeCore(config)
if not config.privateKey then return end
if privateKey then return privateKey end
local keyData = assert(gfs.readFile(config.privateKey))
privateKey = require('openssl').pkey.read(keyData, true)
privateKey = assert(require('openssl').pkey.read(keyData, true))
return privateKey
end

Expand Down

0 comments on commit a6f8aa2

Please sign in to comment.