Ver Fonte

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

The original exception object should be rethrown
Alexander Wilms há 2 anos atrás
pai
commit
2b21001743
1 ficheiros alterados com 1 adições e 1 exclusões
  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)
 		{
 			logGlobal->error("Unhandled exception while drawing road to node %s: %s", node.toString(), e.what());
-			throw e;
+			throw;
 		}
 	}