Fixed process error object to return message.