[smart] Optimize error handling after command execution

This commit is contained in:
bernard 2025-06-26 00:19:29 +08:00 committed by Rbb666
parent 172676e115
commit e00143904f
1 changed files with 1 additions and 5 deletions

View File

@ -45,11 +45,7 @@ else:
print('exec command: "%s" failed.' % ' '.join(command))
exit(1)
if result.returncode == 0:
print("Command executed successfully")
else:
print("Command failed with exit code:", result.returncode)
exit(1)
print("Command executed successfully")
group = DefineGroup('lwProcess', src, depend = ['RT_USING_SMART','RT_USING_VDSO'], CPPPATH = CPPPATH)
Return('group')