pull/14/head
dvkt 4 years ago
parent 9f6b79ff6c
commit d7d246b3f0

@ -12,3 +12,4 @@ pub mod text;
pub mod ui;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const BUG_URL: &str = "https://github.com/dvkt/phetch/issues/new";

@ -9,7 +9,7 @@ use crate::{
help, history,
menu::Menu,
text::Text,
utils,
utils, BUG_URL,
};
use std::{
cell::RefCell,
@ -249,11 +249,11 @@ impl UI {
return page.render();
}
}
String::from("No content to display.")
format!("Error: No focused View. Please file a bug: {}", BUG_URL)
} else {
format!(
"Error getting terminal size. Please file a bug: {}",
"https://github.com/dvkt/phetch/issues/new"
"Error: Can't get terminal size. Please file a bug: {}",
BUG_URL
)
}
}

Loading…
Cancel
Save