mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
fix: improve timeout warning message in the directory scanner (#7120)
This commit is contained in:
+4
-1
@@ -615,7 +615,10 @@ impl DirContents {
|
|||||||
|
|
||||||
if remaining_time <= Duration::from_millis(0) && rx.try_recv().is_err() {
|
if remaining_time <= Duration::from_millis(0) && rx.try_recv().is_err() {
|
||||||
// Timed-out, and rx has been drained.
|
// Timed-out, and rx has been drained.
|
||||||
log::warn!("from_path_with_timeout has timed-out!");
|
log::warn!("Scanning current directory timed out.");
|
||||||
|
log::warn!(
|
||||||
|
"You can set scan_timeout in your config to a higher value to allow longer-running scans to keep executing."
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user