show error on fail write