Giorgi / DuckDB.NET

Bindings and ADO.NET Provider for DuckDB
https://duckdb.net
MIT License
356 stars 62 forks source link

Please provide more detail on error messages #3

Closed travis-leith closed 3 years ago

travis-leith commented 3 years ago

I noticed that in comparing CLI error messages, I get a clear descriptive error. When I use this library I just get "DuckDBQuery failed".

Is there any additional error information coming from the external dlls (something similar to what the CLI shows) that can be propagated in .net?

Giorgi commented 3 years ago

If this happens when you run one of the Execute* methods I think it should be able to read that from DuckDBResult.ErrorMessage Can you send a PR for that?

travis-leith commented 3 years ago

I'll give it a go, but full disclosure: I am not very good at C#. When it comes to .Net, I typically use F#, which is the language I am using this library from. Let's see how I get on.