Explorar el Código

lib/rmg/RoadPlacer.cpp: Remove "e" from this "throw" statement to rethrow the original exception.

The original exception object should be rethrown
Alexander Wilms hace 2 años
padre
commit
2b21001743
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/rmg/modificators/RoadPlacer.cpp

+ 1 - 1
lib/rmg/modificators/RoadPlacer.cpp

@@ -201,7 +201,7 @@ void RoadPlacer::connectRoads()
 		catch (const std::exception & e)
 		catch (const std::exception & e)
 		{
 		{
 			logGlobal->error("Unhandled exception while drawing road to node %s: %s", node.toString(), e.what());
 			logGlobal->error("Unhandled exception while drawing road to node %s: %s", node.toString(), e.what());
-			throw e;
+			throw;
 		}
 		}
 	}
 	}