summaryrefslogtreecommitdiff
path: root/src/resources/loaders/musicloader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-19 00:45:39 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-19 00:45:39 +0300
commitae70ae002eb3b28b84ed9027a6e1d20985f6a087 (patch)
tree6832dab3552bb27a4376a64a84c7c24a603fdc72 /src/resources/loaders/musicloader.cpp
parenta5e3bb0e1600c36da180a47c4c6a0a0b9a260a7c (diff)
downloadmanaverse-ae70ae002eb3b28b84ed9027a6e1d20985f6a087.tar.gz
manaverse-ae70ae002eb3b28b84ed9027a6e1d20985f6a087.tar.bz2
manaverse-ae70ae002eb3b28b84ed9027a6e1d20985f6a087.tar.xz
manaverse-ae70ae002eb3b28b84ed9027a6e1d20985f6a087.zip
Add physfs reporting errors on error loading images.
Diffstat (limited to 'src/resources/loaders/musicloader.cpp')
-rw-r--r--src/resources/loaders/musicloader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/loaders/musicloader.cpp b/src/resources/loaders/musicloader.cpp
index 1a5ae19b2..4610911bb 100644
--- a/src/resources/loaders/musicloader.cpp
+++ b/src/resources/loaders/musicloader.cpp
@@ -48,6 +48,7 @@ namespace
SDL_RWops *const rw = MPHYSFSRWOPS_openRead(rl->path.c_str());
if (!rw)
{
+ reportAlways("Physfs error: %s", PhysFs::getLastError());
reportAlways("Error loading resource: %s",
rl->path.c_str());
return nullptr;