diff --git a/packages/next-rest-framework/src/cli/utils.ts b/packages/next-rest-framework/src/cli/utils.ts index 99d1e99..38f8b95 100644 --- a/packages/next-rest-framework/src/cli/utils.ts +++ b/packages/next-rest-framework/src/cli/utils.ts @@ -83,8 +83,8 @@ export const findConfig = async ({ configPath }: { configPath?: string }) => { }); } } - } catch (e) { - logGenerateErrorForRoute(getRouteName(route), e); + } catch { + // The route was not a docs route. } }) ); @@ -128,8 +128,8 @@ export const findConfig = async ({ configPath }: { configPath?: string }) => { config: _config }); } - } catch (e) { - logGenerateErrorForRoute(getApiRouteName(route), e); + } catch { + // The API route was not a docs API route. } }) );