From 43f7432cb004343ae2d8330707d28267d4d607c2 Mon Sep 17 00:00:00 2001 From: Jan Mrna Date: Thu, 16 Oct 2025 09:49:05 +0200 Subject: [PATCH] Print error details on IMG_Load --- cpp/src/sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/sprite.cpp b/cpp/src/sprite.cpp index be5164f..be88a9b 100644 --- a/cpp/src/sprite.cpp +++ b/cpp/src/sprite.cpp @@ -26,7 +26,7 @@ void Sprite::LoadImage(std::string path, WorldPos image_center) { IMG_Load(path.c_str()), SDL_DestroySurface); if (surface == nullptr) { - LOG_ERROR("IMG_Load failed to load ", path); + LOG_ERROR("IMG_Load failed: ", SDL_GetError()); throw std::runtime_error("Failed to load resources"); }