Parcourir la source

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

The original exception object should be rethrown
Alexander Wilms il y a 2 ans
Parent
commit
2b21001743
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
 		}
 	}