Raise an internal error instead of an unknown error

This commit is contained in:
Blottiere Paul 2019-03-28 16:52:52 +01:00
parent bf02a05b01
commit 8d9d90915a
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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