Conversation
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
🤖 Augment PR SummarySummary: This PR improves the Changes:
Technical Notes: The new location fields are threaded from the JSON-LD resolution layer through 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
1 issue found across 12 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/error.h">
<violation number="1" location="src/error.h:938">
P3: The x-jsonld-override hint block is copied verbatim into two catch handlers (`PositionError<RdfResolutionError>` and `RdfResolutionError`) within the same `try_catch` function. Since `PositionError<T>` inherits from `T`, a single helper (or a small static function that takes the error reference and `is_json`) could print this hint once and be reused by both handlers, keeping the message in one place and making future edits to the wording less error-prone.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| } catch (const PositionError<RdfResolutionError> &error) { | ||
| const auto is_json{options.contains("json")}; | ||
| print_exception(is_json, error); | ||
| if (!is_json && error.inert_override_location().has_value()) { |
There was a problem hiding this comment.
P3: The x-jsonld-override hint block is copied verbatim into two catch handlers (PositionError<RdfResolutionError> and RdfResolutionError) within the same try_catch function. Since PositionError<T> inherits from T, a single helper (or a small static function that takes the error reference and is_json) could print this hint once and be reused by both handlers, keeping the message in one place and making future edits to the wording less error-prone.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/error.h, line 938:
<comment>The x-jsonld-override hint block is copied verbatim into two catch handlers (`PositionError<RdfResolutionError>` and `RdfResolutionError`) within the same `try_catch` function. Since `PositionError<T>` inherits from `T`, a single helper (or a small static function that takes the error reference and `is_json`) could print this hint once and be reused by both handlers, keeping the message in one place and making future edits to the wording less error-prone.</comment>
<file context>
@@ -863,10 +935,26 @@ inline auto try_catch(const sourcemeta::core::Options &options,
} catch (const PositionError<RdfResolutionError> &error) {
const auto is_json{options.contains("json")};
print_exception(is_json, error);
+ if (!is_json && error.inert_override_location().has_value()) {
+ std::cerr << "\nThe x-jsonld-override mark was ignored because it does "
+ "not enclose the\n";
</file context>
Signed-off-by: Juan Cruz Viotti jv@jviotti.com