log complete error object instead of the pure message