From 19dc83a5d54e65d3980e34171406bb96f802990b Mon Sep 17 00:00:00 2001
From: Jonas Kulla <Nyocurio@gmail.com>
Date: Sun, 5 Jan 2014 10:28:35 +0100
Subject: [PATCH] Bitmap: Supply image filename on loading error

---
 src/bitmap.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bitmap.cpp b/src/bitmap.cpp
index 7ebba37..e72ab01 100644
--- a/src/bitmap.cpp
+++ b/src/bitmap.cpp
@@ -212,7 +212,8 @@ Bitmap::Bitmap(const char *filename)
 	SDL_Surface *imgSurf = IMG_LoadTyped_RW(&ops, 1, extension);
 
 	if (!imgSurf)
-		throw Exception(Exception::SDLError, "SDL: %s", SDL_GetError());
+		throw Exception(Exception::SDLError, "Error loading image '%s': %s",
+		                filename, SDL_GetError());
 
 	p->ensureFormat(imgSurf, SDL_PIXELFORMAT_ABGR8888);