Skip to content
Permalink
Browse files

Raise an internal error instead of an unknown error

  • Loading branch information
pblottiere committed Mar 28, 2019
1 parent bf02a05 commit 8d9d90915a772bbc1139d3ddd98b6ad697ef4506
Showing with 2 additions and 4 deletions.
  1. +1 −2 src/server/services/wms/qgswmsgetlegendgraphics.cpp
  2. +1 −2 src/server/services/wms/qgswmsgetmap.cpp
@@ -96,8 +96,7 @@ namespace QgsWms
}
else
{
throw QgsServiceException( QStringLiteral( "UnknownError" ),
QStringLiteral( "Failed to compute GetLegendGraphics image" ) );
throw QgsException( QStringLiteral( "Failed to compute GetLegendGraphics image" ) );
}
}
} // namespace QgsWms
@@ -57,8 +57,7 @@ namespace QgsWms
}
else
{
throw QgsServiceException( QStringLiteral( "UnknownError" ),
QStringLiteral( "Failed to compute GetMap image" ) );
throw QgsException( QStringLiteral( "Failed to compute GetMap image" ) );
}
}
} // namespace QgsWms

0 comments on commit 8d9d909

Please sign in to comment.
You can’t perform that action at this time.