|
|
|
@ -18,7 +18,10 @@ impl UI {
|
|
|
|
|
match Page::load(host, port, selector) {
|
|
|
|
|
Ok(page) => self.pages.push(page),
|
|
|
|
|
Err(e) => {
|
|
|
|
|
eprintln!("error loading {}:{}{}: {}", host, port, selector, e);
|
|
|
|
|
eprintln!(
|
|
|
|
|
"\x1B[91merror loading \x1b[93m{}:{}{}: \x1B[0m{}",
|
|
|
|
|
host, port, selector, e
|
|
|
|
|
);
|
|
|
|
|
std::process::exit(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|