Refactored error handling logic
Refactored error handling logic

harmishhk/catkin,beni55/catkin,thaddeustaylor/catkin,ros/catkin,asmodehn/catkin,scpeters/catkin,asmodehn/catkin,ros/catkin,shyamalschandra/catkin,meyerj/catkin,jack-oquin/catkin,shyamalschandra/catkin,thaddeustaylor/catkin,asmodehn/catkin,meyerj/catkin,wkentaro/catkin,wkentaro/catkin,beni55/catkin,meyerj/catkin,jack-oquin/catkin,shyamalschandra/catkin,ros/catkin,scpeters/catkin,harmishhk/catkin,harmishhk/catkin,beni55/catkin,thaddeustaylor/catkin,jack-oquin/catkin,scpeters/catkin,wkentaro/catkin