Skip to content

Commit b251c95

Browse files
uclarosnyalldawson
authored andcommitted
Expand debug message
1 parent cb1bb87 commit b251c95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/3d/qgs3dmaptoolidentify.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ void Qgs3DMapToolIdentify::mouseReleaseEvent( QMouseEvent *event )
8787
{
8888
mapCoordsCanvas2D = ct.transform( mapCoords );
8989
}
90-
catch ( QgsException &e )
90+
catch ( QgsCsException &e )
9191
{
9292
Q_UNUSED( e )
93-
QgsDebugError( QStringLiteral( "Caught exception %1" ).arg( e.what() ) );
93+
QgsDebugError( QStringLiteral( "Could not transform identified coordinates to project crs: %1" ).arg( e.what() ) );
9494
}
9595

9696
const QgsPoint pt( mapCoordsCanvas2D.x(), mapCoordsCanvas2D.y(), mapCoordsCanvas2D.z() );
@@ -167,10 +167,10 @@ void Qgs3DMapToolIdentify::mouseReleaseEvent( QMouseEvent *event )
167167
const QgsPointXY mapPointSearchRadiusCanvas2D = ct.transform( mapPointSearchRadius );
168168
searchRadiusCanvas2D = mapPointCanvas2D.distance( mapPointSearchRadiusCanvas2D );
169169
}
170-
catch ( QgsException &e )
170+
catch ( QgsCsException &e )
171171
{
172172
Q_UNUSED( e )
173-
QgsDebugError( QStringLiteral( "Caught exception %1" ).arg( e.what() ) );
173+
QgsDebugError( QStringLiteral( "Could not transform identified coordinates to project crs: %1" ).arg( e.what() ) );
174174
}
175175

176176
identifyTool2D->identifyAndShowResults( QgsGeometry::fromPointXY( mapPointCanvas2D ), searchRadiusCanvas2D );

0 commit comments

Comments
 (0)