mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 11:43:25 +00:00
blocks: print exception info on error
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
import traceback
|
||||||
import rospy
|
import rospy
|
||||||
import os
|
import os
|
||||||
import threading
|
import threading
|
||||||
@@ -116,6 +117,7 @@ def run(req):
|
|||||||
rospy.loginfo('Program forced to stop')
|
rospy.loginfo('Program forced to stop')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
rospy.logerr(str(e))
|
rospy.logerr(str(e))
|
||||||
|
traceback.print_exc()
|
||||||
error_pub.publish(str(e))
|
error_pub.publish(str(e))
|
||||||
|
|
||||||
rospy.loginfo('Program terminated')
|
rospy.loginfo('Program terminated')
|
||||||
|
|||||||
Reference in New Issue
Block a user