Fixed issue whereby an object structure was printed on the error long instead of the actual error