Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch_error doesn't work with EmbeddedFilesEndpoint #734

Open
bradleybensmith opened this issue Jan 20, 2024 · 2 comments
Open

catch_error doesn't work with EmbeddedFilesEndpoint #734

bradleybensmith opened this issue Jan 20, 2024 · 2 comments
Labels
question Further information is requested

Comments

@bradleybensmith
Copy link

I can't seem to get this to work:

let app = Route::new()
        .nest("/", EmbeddedFilesEndpoint::<FrontendAssets>::new())
        .catch_error(custom_404);

The custom_404 is never called and an empty 404 is returned.

How do I implement a custom 404 with EmbeddedFilesEndpoint?

@bradleybensmith bradleybensmith added the question Further information is requested label Jan 20, 2024
@sunli829
Copy link
Collaborator

I can't reproduce it. Can you provide a code repository that can reproduce it?

@bradleybensmith
Copy link
Author

bradleybensmith commented Jan 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants