From e8466d08a206237220eec933387abdf4024460ca Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Wed, 7 Aug 2024 11:16:37 -0400 Subject: [PATCH] renamed block scope --- src/routes/update.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/update.nim b/src/routes/update.nim index dd88855..6bdece0 100644 --- a/src/routes/update.nim +++ b/src/routes/update.nim @@ -36,11 +36,11 @@ proc createUpdateRoutes*() = except NotFoundError: resp Http404, "File does not exist.\n" - block FileDoesNotExist: + block FileDoesNotExistCheck: try: db.select(file, """"File".name = $1""", newName) except NotFoundError: - break FileDoesNotExist + break FileDoesNotExistCheck resp Http403, "File with that name already exists.\n" let newPath = file.path[0..^file.name.len+1] & newName