Skip to content

Commit

Permalink
Raise an internal error instead of an unknown error
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Mar 28, 2019
1 parent bf02a05 commit 8d9d909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/server/services/wms/qgswmsgetlegendgraphics.cpp
Expand Up @@ -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
3 changes: 1 addition & 2 deletions src/server/services/wms/qgswmsgetmap.cpp
Expand Up @@ -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.