diff options
Diffstat (limited to '')
| -rw-r--r-- | tests/common.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/common.lua b/tests/common.lua index 9a7ed19..b8ce01d 100644 --- a/tests/common.lua +++ b/tests/common.lua | |||
| @@ -99,6 +99,10 @@ function file_load(filename) | |||
| 99 | local data = file:read("*a") | 99 | local data = file:read("*a") |
| 100 | file:close() | 100 | file:close() |
| 101 | 101 | ||
| 102 | if data == nil then | ||
| 103 | error("Failed to read " .. filename) | ||
| 104 | end | ||
| 105 | |||
| 102 | return data | 106 | return data |
| 103 | end | 107 | end |
| 104 | 108 | ||
