append err detail if we have it for logged error