Explorar el Código

Wrap thrown string in std::runtime_error

Winston Weinert hace 6 años
padre
commit
d9f3587a71
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/main.cpp

+ 1
- 1
src/main.cpp Ver fichero

@@ -43,7 +43,7 @@ glm::vec4 parseColor( std::string value ) {
43 43
             value = value.substr(sz+1);
44 44
             found[3] = std::stof(value,&sz);
45 45
             if ( value.size() != sz ) {
46
-                throw "dur";
46
+                throw std::runtime_error("dur");
47 47
             }
48 48
         } else {
49 49
             found[3] = 1;