diff options
author | Teddy Wing | 2017-05-09 01:13:17 +0200 |
---|---|---|
committer | Teddy Wing | 2017-05-09 01:13:17 +0200 |
commit | 0fe722bbc2e53278dad2bab9268a3cca52e19825 (patch) | |
tree | 0c0aa227570c644437fd6efbf9cfeb189d4a1d24 | |
parent | a3ed5d5ef033eb3cf70351797296955b386d0151 (diff) | |
download | HearURL-0fe722bbc2e53278dad2bab9268a3cca52e19825.tar.bz2 |
open_stream(): Change `write!` to `writeln!` on STDERR
When printing errors to STDERR, ensure we're writing newlines to
separate error messages.
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 96a3986..40ff310 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,7 @@ fn open_stream(browser: String, port: u16) -> Result<(), Box<Error>> { .spawn()?; } Err(e) => { - write!(io::stderr(), "{}", e)?; + writeln!(io::stderr(), "{}", e)?; } } } |