diff options
Diffstat (limited to 'crates/turtle/src/print_error.rs')
| -rw-r--r-- | crates/turtle/src/print_error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/turtle/src/print_error.rs b/crates/turtle/src/print_error.rs index 4d4724bc..0a6303dd 100644 --- a/crates/turtle/src/print_error.rs +++ b/crates/turtle/src/print_error.rs @@ -7,7 +7,7 @@ use crossterm::terminal; /// Print a prominent error to stderr. Colored and box-bordered when stderr is /// a TTY, plain "Error: ..." header otherwise. The description is word-wrapped /// to the terminal width (capped at 100 columns) so the message stays readable. -pub fn print_error(title: &str, description: &str) { +pub(crate) fn print_error(title: &str, description: &str) { let is_tty = std::io::stderr().is_terminal(); let width = if is_tty { terminal::size().map_or(80, |(w, _)| w as usize) @@ -36,7 +36,7 @@ pub fn print_error(title: &str, description: &str) { /// Convert a `SyncError` into an `eyre::Report`, exiting on `WrongKey` after /// painting the prominent banner. -pub fn format_sync_error(e: SyncError) -> eyre::Report { +pub(crate) fn format_sync_error(e: SyncError) -> eyre::Report { if matches!(e, SyncError::WrongKey) { print_error( "Wrong encryption key", |
