Skip to content

Commit 6407b94

Browse files
Update long error explanations
1 parent eb5b903 commit 6407b94

File tree

8 files changed

+842
-487
lines changed

8 files changed

+842
-487
lines changed

src/error-index-generator/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ fn main_with_result(format: OutputFormat) -> Result<(), Box<Error>> {
178178
let metadata_dir = get_metadata_dir(&build_arch);
179179
let err_map = try!(load_all_errors(&metadata_dir));
180180
match format {
181-
OutputFormat::Unknown(s) => panic!("Unknown output format: {}", s),
182-
OutputFormat::HTML(h) => try!(render_error_page(&err_map,
183-
Path::new("doc/error-index.html"),
184-
h)),
185-
OutputFormat::Markdown(m) => try!(render_error_page(&err_map,
186-
Path::new("doc/error-index.html"),
187-
m)),
181+
OutputFormat::Unknown(s) => panic!("Unknown output format: {}", s),
182+
OutputFormat::HTML(h) => try!(render_error_page(&err_map,
183+
Path::new("doc/error-index.html"),
184+
h)),
185+
OutputFormat::Markdown(m) => try!(render_error_page(&err_map,
186+
Path::new("doc/error-index.md"),
187+
m)),
188188
}
189189
Ok(())
190190
}

0 commit comments

Comments
 (0)