1
0
mirror of https://github.com/bitwarden/server synced 2025-12-16 00:03:54 +00:00

Fix tests

This commit is contained in:
Hinton
2025-11-14 14:31:32 +01:00
parent dff45c137d
commit d9b5ab2f67
6 changed files with 92 additions and 52 deletions

View File

@@ -18,11 +18,11 @@ public class QueryController(ILogger<QueryController> logger, IQueryService quer
return Json(result);
}
catch (SceneNotFoundException ex)
catch (QueryNotFoundException ex)
{
return NotFound(new { Error = ex.Message });
}
catch (SceneExecutionException ex)
catch (QueryExecutionException ex)
{
logger.LogError(ex, "Error executing query: {Query}", request.Template);
return BadRequest(new { Error = ex.Message, Details = ex.InnerException?.Message });