Skip to content

Commit

Permalink
fix(watch): Don't stop on error
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 6, 2018
1 parent 7b3d255 commit 3c4d086
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bin/cobalt/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use std::thread;

use clap;
use cobalt::cobalt_model::files;
use error_chain::ChainedError;
use hyper;
use hyper::server::{Server, Request, Response};
use hyper::uri::RequestUri;
Expand Down Expand Up @@ -79,7 +80,10 @@ pub fn watch_command(matches: &clap::ArgMatches) -> Result<()> {
true
};
if rebuild {
build::build(&config)?;
let result = build::build(&config);
if let Err(fail) = result {
error!("build failed\n{}", fail.display_chain());
}
}
}
}
Expand Down

0 comments on commit 3c4d086

Please sign in to comment.