mirror of
https://github.com/Oreolek/ink-instead.git
synced 2024-05-12 14:08:24 +03:00
error opening file
This commit is contained in:
parent
31870954d9
commit
b2b6dd4d51
|
@ -5,6 +5,7 @@ local runtime = require(folderOfThisFile .. 'runtime')
|
||||||
|
|
||||||
local function read(file)
|
local function read(file)
|
||||||
local f = io.open(file, "rb")
|
local f = io.open(file, "rb")
|
||||||
|
if not f then error('failed to open "'..file..'"') end
|
||||||
local content = f:read("*all")
|
local content = f:read("*all")
|
||||||
f:close()
|
f:close()
|
||||||
return content
|
return content
|
||||||
|
|
Loading…
Reference in a new issue