raise type error in unkown return type from intercept