Fix error logging

create an Error object from error info returned from method response