Skip to content

Commit 8d9d909

Browse files
committed
Raise an internal error instead of an unknown error
1 parent bf02a05 commit 8d9d909

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/server/services/wms/qgswmsgetlegendgraphics.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ namespace QgsWms
9696
}
9797
else
9898
{
99-
throw QgsServiceException( QStringLiteral( "UnknownError" ),
100-
QStringLiteral( "Failed to compute GetLegendGraphics image" ) );
99+
throw QgsException( QStringLiteral( "Failed to compute GetLegendGraphics image" ) );
101100
}
102101
}
103102
} // namespace QgsWms

src/server/services/wms/qgswmsgetmap.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ namespace QgsWms
5757
}
5858
else
5959
{
60-
throw QgsServiceException( QStringLiteral( "UnknownError" ),
61-
QStringLiteral( "Failed to compute GetMap image" ) );
60+
throw QgsException( QStringLiteral( "Failed to compute GetMap image" ) );
6261
}
6362
}
6463
} // namespace QgsWms

0 commit comments

Comments
 (0)