.837153868231523:511f8a21f4463fe04287fda0a6b3fb60_69e02af5c3868315bb5556cc.69e052f2b1c48b9d8aa37ef9.69e052f0f4999266cdd1ecc1:Trae CN.T(2026/4/16 11:09:38)S2#1071
Open
wanderl5 wants to merge 2 commits intoleethomason:masterfrom
Conversation
重构错误信息输出格式,移除冗余信息并优化可读性: - 去掉 Error= 前缀和 ErrorID 字段 - 仅当 lineNum > 0 时显示行号 - 优化上下文信息格式 - 更新测试用例中的硬编码断言
添加多个测试用例来验证不同XML解析错误场景下的错误字符串输出,包括文件打开失败、文件未找到、声明解析错误、元素解析错误等场景。确保错误信息格式正确且包含相关上下文信息。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
添加XML错误字符串的测试用例