Skip to content

Fix exception message for Time.rfc3339 failures - #79

Merged
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:rfc3339-error-message
Aug 6, 2026
Merged

Fix exception message for Time.rfc3339 failures#79
jeremyevans merged 1 commit into
ruby:masterfrom
jeremyevans:rfc3339-error-message

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

The previous message used xmlschema, which was inaccurate for an rfc3339 parse.

While we could have _xmlschema take an extra argument for the callee, it seems simpler to have _xmlschema return nil for an unmatched parse, and do the raising in xmlschema/rfc3339. With this approach, we can reduce the nesting by using an early return.

The previous message used xmlschema, which was inaccurate for an
rfc3339 parse.

While we could have _xmlschema take an extra argument for the callee,
it seems simpler to have _xmlschema return nil for an unmatched parse,
and do the raising in xmlschema/rfc3339. With this approach, we can
reduce the nesting by using an early return.
@jeremyevans
jeremyevans merged commit 69dffef into ruby:master Aug 6, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants