Added assert() to hijacking.

This commit is contained in:
Bruce Hill 2018-03-25 15:51:11 -07:00
parent 6d820d18d4
commit 1eb6556b65
2 changed files with 3 additions and 1 deletions

View File

@ -746,8 +746,9 @@ ldb = {
err_msg = err_msg or 'Assertion failed!'
xpcall(ldb.run_debugger, err_hand, err_msg)
print(debug.traceback(err_msg, 2))
return os.exit(2)
os.exit(2)
end
return condition
end
end
}

View File

@ -553,6 +553,7 @@ ldb = {
xpcall(ldb.run_debugger, err_hand, err_msg)
print(debug.traceback(err_msg, 2))
os.exit(2)
return condition
}
return ldb