Skip to content

Commit e001439

Browse files
BernardXiongRbb666
authored andcommitted
[smart] Optimize error handling after command execution
1 parent 172676e commit e001439

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

components/lwp/vdso/SConscript

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ else:
4545
print('exec command: "%s" failed.' % ' '.join(command))
4646
exit(1)
4747

48-
if result.returncode == 0:
49-
print("Command executed successfully")
50-
else:
51-
print("Command failed with exit code:", result.returncode)
52-
exit(1)
48+
print("Command executed successfully")
5349

5450
group = DefineGroup('lwProcess', src, depend = ['RT_USING_SMART','RT_USING_VDSO'], CPPPATH = CPPPATH)
5551
Return('group')

0 commit comments

Comments
 (0)