error: add proper error strings

Co-authored-by: tema5002 <tema5002@tuta.io>
Reviewed-on: NeoFlock/noom#3
Co-committed-by: tema5002 <tema5002@tuta.io>
This commit is contained in:
2026-05-24 12:08:07 +02:00
committed by Blendi
parent 0d6b1c6729
commit fbbe2e8285
9 changed files with 329 additions and 61 deletions

View File

@@ -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',