We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Maybe something like this would work?
diff --git a/contrib/libs/sdl2/src/file/SDL_rwops.c b/contrib/libs/sdl2/src/file/SDL_rwops.c index bf47ba711..444bf4af3 100644 --- a/contrib/libs/sdl2/src/file/SDL_rwops.c +++ b/contrib/libs/sdl2/src/file/SDL_rwops.c @@ -36,6 +36,7 @@ #ifdef HAVE_STDIO_H #include <stdio.h> +#include <errno.h> #include <sys/stat.h> #endif #ifdef HAVE_LIMITS_H @@ -632,7 +633,7 @@ SDL_RWops *SDL_RWFromFile(const char *file, const char *mode) FILE *fp = fopen(file, mode); #endif if (!fp) { - SDL_SetError("Couldn't open %s", file); + SDL_SetError("Couldn't open %s: %s", file, strerror(errno)); } else if (!IsRegularFileOrPipe(fp)) { fclose(fp); fp = NULL;
The text was updated successfully, but these errors were encountered:
Added detail about why a file couldn't be opened (thanks mgerhardy!)
1512013
Fixes #10484
44927fe
Looks good, thanks!
Sorry, something went wrong.
07cfc34
Fixes #10484 (cherry picked from commit 1512013)
No branches or pull requests
Maybe something like this would work?
The text was updated successfully, but these errors were encountered: