xcomponent/ReactiveXComponent.js

Creating session with wrong api name leads to a crash

nicolaserny opened this issue · 2 comments

Avoid a crash
Notify the user properly
Ideally, display a log containing available api names

@nicolaserny To clarify: the point is improving the behavior of DefaultConnection.createSession(...) / createAuthenticatedSession(...), and by api name you mean "xcApiFileName"

Right?

I created a PR with a proposal.
I didn't do the part "Ideally, display a log containing available api names". I think we need to call the server to get the list of available APIs, I don't like the idea of calling the server to provide error messages...