Skip to content

feat(c): add source context to manifest and profile parse errors - #4633

Open
amoeba wants to merge 4 commits into
apache:mainfrom
amoeba:feat/manifest-and-profile-include-source-loc
Open

feat(c): add source context to manifest and profile parse errors#4633
amoeba wants to merge 4 commits into
apache:mainfrom
amoeba:feat/manifest-and-profile-include-source-loc

Conversation

@amoeba

@amoeba amoeba commented Jul 29, 2026

Copy link
Copy Markdown
Member

If I have an manifest or profile that's invalid TOML, such as,

profile_version = 1
driver = not_a_valid_toml_value

I get a vague error:

[Driver Manager] Could not open profile. Error while parsing value: could not determine value type

It turns out the toml++ library can show the line and column number where the parse error occurred. This PR adds that context if it's available so we get a better error:

[Driver Manager] Could not open profile. Error while parsing value: could not determine value type (line 2, column 10).

@amoeba
amoeba requested a review from zeroshade July 29, 2026 20:53
@amoeba
amoeba requested a review from lidavidm as a code owner July 29, 2026 20:53

@lidavidm lidavidm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems pre-commit is still unhappy

Comment thread c/driver_manager/adbc_driver_manager_test.cc Outdated
@amoeba

amoeba commented Jul 30, 2026

Copy link
Copy Markdown
Member Author

Should be good now. 🤞

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