diff options
| author | ruki <[email protected]> | 2019-08-23 22:50:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-23 11:01:35 +0800 |
| commit | 01e7af7426fc0d1b461efbe57d9ed137fb1894ee (patch) | |
| tree | 38548a2d2f6cf055cc23b3660eb9fe601eb75254 /xmake/core/_xmake_main.lua | |
| parent | 713d22e55d1fc6633f76ab34fe913ac5d793b735 (diff) | |
add luajit.bcsave
Diffstat (limited to 'xmake/core/_xmake_main.lua')
| -rw-r--r-- | xmake/core/_xmake_main.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua index f7aebd3e3..7f812089b 100644 --- a/xmake/core/_xmake_main.lua +++ b/xmake/core/_xmake_main.lua @@ -48,11 +48,13 @@ function _loadfile_impl(filepath, mode) -- load script data from file local file, ferrors = io.file_open(filepath, binary and "rb" or "r") if not file then + ferrors = string.format("file(%s): %s", filepath, ferrors or "open failed!") return nil, ferrors end local data, rerrors = io.file_read(file, "a") if not data then + rerrors = string.format("file(%s): %s", filepath, rerrors or "read failed!") return nil, rerrors end io.file_close(file) |
