error: add proper error strings
Co-authored-by: tema5002 <tema5002@tuta.io> Reviewed-on: #3 Co-committed-by: tema5002 <tema5002@tuta.io>
This commit was merged in pull request #3.
This commit is contained in:
@@ -15,7 +15,10 @@ end
|
||||
|
||||
local function runCommand(cmd)
|
||||
print("> " .. cmd)
|
||||
return os.execute(cmd)
|
||||
local result = os.execute(cmd)
|
||||
if result ~= true then
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
|
||||
local function fixPath(path)
|
||||
@@ -58,6 +61,7 @@ if not needsDir then
|
||||
end
|
||||
|
||||
local files = {
|
||||
'src/error.c',
|
||||
'src/helper.c',
|
||||
'src/lexer.c',
|
||||
'src/parser.c',
|
||||
|
||||
Reference in New Issue
Block a user