Skip to content

Commit

Permalink
Log error to ProcessingLog
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Ströbl committed Dec 8, 2014
1 parent a2c656e commit da17656
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/algs/qgis/SplitLinesWithLines.py
Expand Up @@ -31,6 +31,7 @@
from processing.core.GeoAlgorithm import GeoAlgorithm
from processing.core.parameters import ParameterVector
from processing.core.outputs import OutputVector
from processing.core.ProcessingLog import ProcessingLog
from processing.tools import dataobjects
from processing.tools import vector

Expand Down Expand Up @@ -106,7 +107,8 @@ def processAlgorithm(self, progress):
try:
result, newGeometries, topoTestPoints = inGeom.splitGeometry(splitterPList, False)
except:
QgsMessageLog.logMessage("exception")
ProcessingLog.addToLog(ProcessingLog.LOG_WARNING,
'Geometry exception while splitting')
result = 1

# splitGeometry: If there are several intersections
Expand Down

0 comments on commit da17656

Please sign in to comment.