Replaced exception with runtime_error

This commit is contained in:
Robert 2021-01-21 15:48:31 +01:00
parent a9bbbbb7a3
commit aef5818474
5 changed files with 18 additions and 7 deletions

View file

@ -69,7 +69,7 @@ int main(int argc, char** argv)
{
shader = oglu::MakeShader("shaders/vertexShader.vert", "shaders/fragmentShader.frag");
}
catch (const std::exception& e)
catch (const std::runtime_error& e)
{
std::cerr << e.what() << std::endl;
return -1;