Skip to content

Commit

Permalink
Silence findConfig errors
Browse files Browse the repository at this point in the history
A custom error handling/logging was previously
added to log any errros for importing routes
during the OpenAPI path generation. For finding
the correct docs handler to pull the NRF config
from, that handling is not needed and it may often
result to a lot of visible errors for the user, so
we remove that in this commit.
  • Loading branch information
blomqma committed Sep 24, 2024
1 parent b027c20 commit a8b7772
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next-rest-framework/src/cli/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
})
);
Expand Down Expand Up @@ -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.
}
})
);
Expand Down

0 comments on commit a8b7772

Please sign in to comment.