inbo/etnservice

A better error for a wrong password

PietrH opened this issue · 2 comments

Currently if you provide the wrong password to connect_to_etn() the following error is returned:

Error: nanodbc/nanodbc.cpp:1021: 00000: [unixODBC]fe_sendauth: no password supplied
 
In addition: Warning message:
In readLines(file, skipNul = TRUE) :
 

 Error: nanodbc/nanodbc.cpp:1021: 00000: [unixODBC]fe_sendauth: no password supplied

Is there a way we can intercept this ODBC error and produce our own?

Currently the client package doesn't pass along error messages, so I'm making this issue for future reference

PietrH commented

The client now passes errors: inbo/etn@1c24bfc