Defaulting to the err object if no stack is present