fix: proper errors on failed to find env

This commit is contained in:
Daniel Hougaard
2024-10-16 22:38:36 +04:00
parent 83ac8abf81
commit 01920d7a50
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ export const recursivelyGetSecretPaths = ({
});
if (!env) {
throw new Error(`'${environment}' environment not found in project with ID ${projectId}`);
throw new NotFoundError({ message: `'${environment}' environment not found in project with ID ${projectId}` });
}
// Fetch all folders in env once with a single query