Skip to content

Tag invalid-value errors with an opaque field+value locator#19

Closed
riccardo-perotti wants to merge 3 commits into
masterfrom
rp.notkt.make-invalid-value-error-verbose
Closed

Tag invalid-value errors with an opaque field+value locator#19
riccardo-perotti wants to merge 3 commits into
masterfrom
rp.notkt.make-invalid-value-error-verbose

Conversation

@riccardo-perotti

Copy link
Copy Markdown

Field::makevalue now stamps the otherwise-anonymous invalid value error with an opaque locator:

invalid value [c37.225.1486:len15_digit+comma]

Format: <dbr_instances.tag>.<dbr_tables.id>.<dbr_fields.id>:<value-shape> — numeric ids + a value shape (length/char-classes/ref/undef), never schema names or the raw value, so it's safe for external consumers. Resolve the ids against the dbr config to recover the field.

Inserted before the at FILE line N backtrace so UnRPC's $-anchored strip still removes the file path and code=internal_error is preserved. Locator-building is guarded so it can never mask the original error.

🤖 Generated with Claude Code

riccardo-perotti and others added 3 commits April 10, 2026 11:16
Tag the otherwise-anonymous "invalid value" with
<dbr_instances.tag>.<dbr_tables.id>.<dbr_fields.id>:<value-shape> so it can
be traced to a field and value-shape from logs, without leaking schema names
or the offending value to outside consumers. Inserted before the "at FILE
line N" backtrace so UnRPC's strip still removes the path and code=internal_error
is preserved.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@riccardo-perotti

Copy link
Copy Markdown
Author

Superseded by #20 — this branch was cut from a stale master (~April) and carried an unrelated perl:5.24 CI commit that conflicted with master's host-based workflow. #20 is the same makevalue change cherry-picked clean onto current master.

@riccardo-perotti riccardo-perotti deleted the rp.notkt.make-invalid-value-error-verbose branch June 11, 2026 19:23
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.

1 participant