Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure calls to 'error' also call 'SDL_GetError' #22

Open
ocharles opened this issue Jan 3, 2014 · 1 comment
Open

Make sure calls to 'error' also call 'SDL_GetError' #22

ocharles opened this issue Jan 3, 2014 · 1 comment

Comments

@ocharles
Copy link
Collaborator

ocharles commented Jan 3, 2014

Calls such as error "Failed to create rendering context" could be improved by saying why.

@osa1
Copy link
Collaborator

osa1 commented Jan 3, 2014

In my fork I'm also trying to improve that. I'm using these two functions for error reporting: https://github.com/osa1/hsSDL2/blob/master/Graphics/UI/SDL/General.hsc#L222

An example use: https://github.com/osa1/hsSDL2/blob/master/Graphics/UI/SDL/Render.hsc#L125

Later we can change handleError and handleErrorI and provide user to specify an error handler so that he/she can show errors in a window, for example.

I still have a few undefined parts in my work and after fixing those I'll submit a pull request.

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

No branches or pull requests

2 participants