Skip to content

Commit a6f8aa2

Browse files
committed
Assert pkey.read for better error messages when failing to parse privateKey file
Helps with debugging luvit#261
1 parent 55f47c6 commit a6f8aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/core.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ local function makeCore(config)
113113
if not config.privateKey then return end
114114
if privateKey then return privateKey end
115115
local keyData = assert(gfs.readFile(config.privateKey))
116-
privateKey = require('openssl').pkey.read(keyData, true)
116+
privateKey = assert(require('openssl').pkey.read(keyData, true))
117117
return privateKey
118118
end
119119

0 commit comments

Comments
 (0)