Skip to content

Commit

Permalink
error-index: Don't generate 404 instead of removing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jan 5, 2023
1 parent f2ad85a commit 72c3082
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions src/tools/error_index_generator/book_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ src = ""
git-repository-url = "https://github.com/rust-lang/rust/"
additional-css = ["error-index.css"]
additional-js = ["error-index.js"]
input-404 = ""

[output.html.search]
enable = true
Expand Down
3 changes: 0 additions & 3 deletions src/tools/error_index_generator/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,6 @@ This page lists all the error codes emitted by the Rust compiler.
</html>"#,
)?;

// No need for a 404 file, it's already handled by the server.
fs::remove_file(output_path.join("error_codes/404.html"))?;

Ok(())
}

Expand Down

0 comments on commit 72c3082

Please sign in to comment.