mirror of https://github.com/RT-Thread/rt-thread
[smart] Optimize error handling after command execution
This commit is contained in:
parent
172676e115
commit
e00143904f
|
@ -45,11 +45,7 @@ else:
|
||||||
print('exec command: "%s" failed.' % ' '.join(command))
|
print('exec command: "%s" failed.' % ' '.join(command))
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if result.returncode == 0:
|
|
||||||
print("Command executed successfully")
|
print("Command executed successfully")
|
||||||
else:
|
|
||||||
print("Command failed with exit code:", result.returncode)
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
group = DefineGroup('lwProcess', src, depend = ['RT_USING_SMART','RT_USING_VDSO'], CPPPATH = CPPPATH)
|
group = DefineGroup('lwProcess', src, depend = ['RT_USING_SMART','RT_USING_VDSO'], CPPPATH = CPPPATH)
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue