mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Raise an internal error instead of an unknown error
This commit is contained in:
parent
bf02a05b01
commit
8d9d90915a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user