Skip to content

Commit 9cd69ad

Browse files
Potential fix for pull request finding 'Generic catch clause'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent d4956a8 commit 9cd69ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Web/Grand.Web.Store/Controllers/CustomerController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public async Task<IActionResult> Delete(string id)
368368
Error(ModelState);
369369
return RedirectToAction("Edit", new { id = customer.Id });
370370
}
371-
catch (Exception exc)
371+
catch (GrandException exc)
372372
{
373373
Error(exc.Message);
374374
return RedirectToAction("Edit", new { id = customer.Id });

0 commit comments

Comments
 (0)