Commit 3d581a89 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] meaningfull error message when parsing wrong syntax in include

statement of shader
parent 97238d1a
......@@ -32,6 +32,7 @@
#include <boost/tokenizer.hpp>
#include "WShader.h"
#include "../common/WLogger.h"
WShader::WShader()
{
......@@ -137,6 +138,7 @@ std::string WShader::getIncludeFileName( std::string line )
}
if ( count < 2 )
{
WLogger::getLogger()->addLogMessage( "Missing quotes around file name in include statement of shader.", "Marching Cubes", LL_ERROR );
// TODO(schurade): here we could throw an exception
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment