From 76b3e8535216c8429b2153c0be819fea853d425a Mon Sep 17 00:00:00 2001 From: "N. Pattakos" Date: Fri, 7 Jan 2022 23:09:38 +0100 Subject: [PATCH] fix unused exception parameter: print it in exception message --- includes/learnopengl/shader.h | 2 +- includes/learnopengl/shader_m.h | 2 +- includes/learnopengl/shader_s.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/learnopengl/shader.h b/includes/learnopengl/shader.h index a60870f..1ac9dbe 100644 --- a/includes/learnopengl/shader.h +++ b/includes/learnopengl/shader.h @@ -55,7 +55,7 @@ public: } catch (std::ifstream::failure& e) { - std::cout << "ERROR::SHADER::FILE_NOT_SUCCESFULLY_READ" << std::endl; + std::cout << "ERROR::SHADER::FILE_NOT_SUCCESFULLY_READ: " << e.what() << std::endl; } const char* vShaderCode = vertexCode.c_str(); const char * fShaderCode = fragmentCode.c_str(); diff --git a/includes/learnopengl/shader_m.h b/includes/learnopengl/shader_m.h index c321ec1..b554064 100644 --- a/includes/learnopengl/shader_m.h +++ b/includes/learnopengl/shader_m.h @@ -43,7 +43,7 @@ public: } catch (std::ifstream::failure& e) { - std::cout << "ERROR::SHADER::FILE_NOT_SUCCESFULLY_READ" << std::endl; + std::cout << "ERROR::SHADER::FILE_NOT_SUCCESFULLY_READ: " << e.what() << std::endl; } const char* vShaderCode = vertexCode.c_str(); const char * fShaderCode = fragmentCode.c_str(); diff --git a/includes/learnopengl/shader_s.h b/includes/learnopengl/shader_s.h index 484e0ec..80565a8 100644 --- a/includes/learnopengl/shader_s.h +++ b/includes/learnopengl/shader_s.h @@ -42,7 +42,7 @@ public: } catch (std::ifstream::failure& e) { - std::cout << "ERROR::SHADER::FILE_NOT_SUCCESFULLY_READ" << std::endl; + std::cout << "ERROR::SHADER::FILE_NOT_SUCCESFULLY_READ: " << e.what() << std::endl; } const char* vShaderCode = vertexCode.c_str(); const char * fShaderCode = fragmentCode.c_str();