From 9eee9cee41cb96a1a3674952717c32d6e3a590d7 Mon Sep 17 00:00:00 2001 From: nkumar2 Date: Mon, 19 Feb 2024 14:24:37 +0000 Subject: [PATCH] update delete assembly --- .../ebi/eva/contigalias/controller/admin/AdminController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/uk/ac/ebi/eva/contigalias/controller/admin/AdminController.java b/src/main/java/uk/ac/ebi/eva/contigalias/controller/admin/AdminController.java index 80492e3d..7b551989 100644 --- a/src/main/java/uk/ac/ebi/eva/contigalias/controller/admin/AdminController.java +++ b/src/main/java/uk/ac/ebi/eva/contigalias/controller/admin/AdminController.java @@ -252,7 +252,8 @@ public ResponseEntity deleteAssemblyByAccession( HttpStatus.INTERNAL_SERVER_ERROR); } } else { - return ResponseEntity.ok("Could not find the requested assembly."); + return new ResponseEntity<>("The requested assembly for deletion could not be found", + HttpStatus.NOT_FOUND); } }