Repository: mun-lang/mun (language: rust)

Issue:
After hotreloading code with errors compiler says that build is successfull
If we use `mun build lib.mun --watch` on this code:
```
fn main(): float {
	0
}
```
Firstly we get this output:
![image](https://user-images.githubusercontent.com/40376451/71831854-8cfb5f80-30cb-11ea-8f19-062065cd0f11.png)

But if we hotreload our code(without any changes), we get same output but also with "Successfuly compiled" line:
![image](https://user-images.githubusercontent.com/40376451/71831929-b1efd280-30cb-11ea-9526-40c6b9ddfd71.png)

Here gif that show this issue:
![j](https://user-images.githubusercontent.com/40376451/71832107-0bf09800-30cc-11ea-9492-f52250c2d438.gif)



Discussion / hints:

Fix patch:
diff --git a/crates/mun_compiler_daemon/src/lib.rs b/crates/mun_compiler_daemon/src/lib.rs
index bd1df75bf..bb2c4319d 100644
--- a/crates/mun_compiler_daemon/src/lib.rs
+++ b/crates/mun_compiler_daemon/src/lib.rs
@@ -34,8 +34,8 @@ pub fn main(options: CompilerOptions) -> Result<(), Error> {
                 driver.set_file_text(file_id, &contents);
                 if !driver.emit_diagnostics(&mut writer)? {
                     driver.write_assembly(file_id)?;
+                    println!("Successfully compiled: {}", path.display())
                 }
-                println!("Successfully compiled: {}", path.display())
             }
             Ok(_) => {}
             Err(e) => eprintln!("Watcher error: {:?}", e),


Test patch: