diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-28 16:38:06 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-28 16:38:06 -0700 |
| commit | dc117fecde14706b3ab5fbcd64f743dba6de9e1b (patch) | |
| tree | 929d32253cfdbb303dadeecf7433466f6b27214c /src/rustc | |
| parent | c01d05f18d57c548338eb56f5eaf31ab07fda24b (diff) | |
| download | rust-dc117fecde14706b3ab5fbcd64f743dba6de9e1b.tar.gz rust-dc117fecde14706b3ab5fbcd64f743dba6de9e1b.zip | |
rustc: Use a slightly more consistent style for unexpected errors
Diffstat (limited to 'src/rustc')
| -rw-r--r-- | src/rustc/driver/rustc.rs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/rustc/driver/rustc.rs b/src/rustc/driver/rustc.rs index efd54826590..de194211277 100644 --- a/src/rustc/driver/rustc.rs +++ b/src/rustc/driver/rustc.rs @@ -215,12 +215,18 @@ fn monitor(f: fn~(diagnostic::emitter)) { none, diagnostic::ice_msg("unexpected failure"), diagnostic::error); - let note = "The compiler hit an unexpected failure path. \ - This is a bug. Try running with \ - RUST_LOG=rustc=0,::rt::backtrace \ - to get further details and report the results \ - to github.com/mozilla/rust/issues"; - diagnostic::emit(none, note, diagnostic::note); + + for [ + + "the compiler hit an unexpected failure path. \ + this is a bug", + "try running with RUST_LOG=rustc=0,::rt::backtrace \ + to get further details and report the results \ + to github.com/mozilla/rust/issues" + + ].each {|note| + diagnostic::emit(none, note, diagnostic::note) + } } // Fail so the process returns a failure code fail; |
