diff --git a/tests/test_utilities/opengl_buffer_data_comparison.hpp b/tests/test_utilities/opengl_buffer_data_comparison.hpp
index 053028a65bd1dd08e39bf083de4ece10d6869cad..47c28f0cce855ac18f8f8fee696fe79518424ee6 100644
--- a/tests/test_utilities/opengl_buffer_data_comparison.hpp
+++ b/tests/test_utilities/opengl_buffer_data_comparison.hpp
@@ -40,6 +40,7 @@
 
 #include "catch/catch.hpp"
 
+#include "phx/core/logger.hpp"
 #include "phx/rendering/backend/opengl_image_buffer_data.hpp"
 #include "phx/resources/resource_manager.hpp"
 #include "phx/resources/types/image.hpp"
@@ -224,9 +225,9 @@ void OpenGLBufferComparison::REQUIRE_REFERENCE_IMAGE_SIMILARITY(
     try {
       image.Load();
     } catch (const std::exception&) {
-      error(
+      phx::error(
           "Unexpected exception while loading the reference image. File exists "
-          "but may be corrupted.")
+          "but may be corrupted.");
     }
   }