This commit is contained in:
sxyazi 2025-05-28 20:39:18 +08:00
parent ae9b7c078b
commit 084319e8c9
No known key found for this signature in database

View file

@ -112,7 +112,7 @@ fn migrate(p: std::path::PathBuf) -> String {
if let Err(e) = std::fs::copy(&p, backup) { if let Err(e) = std::fs::copy(&p, backup) {
_ = TTY.writer().write_all( _ = TTY.writer().write_all(
format!("WARNING: `[manager]` has been deprecated in favor of the new `[mgr]`, see #2803 for more details: https://github.com/sxyazi/yazi/pull/2803\n format!("WARNING: `[manager]` has been deprecated in favor of the new `[mgr]`, see #2803 for more details: https://github.com/sxyazi/yazi/pull/2803\n
Trying to migrate your config automatically failed, please rename the file manually, error while backuping {p:?}: \n{e:?}\n").as_bytes(), Trying to migrate your config automatically failed, please edit the file manually, error while backuping {p:?}: \n{e:?}\n").as_bytes(),
); );
return new; return new;
} }
@ -120,7 +120,7 @@ Trying to migrate your config automatically failed, please rename the file manua
if let Err(e) = std::fs::write(&p, &new) { if let Err(e) = std::fs::write(&p, &new) {
_ = TTY.writer().write_all( _ = TTY.writer().write_all(
format!("WARNING: `[manager]` has been deprecated in favor of the new `[mgr]`, see #2803 for more details: https://github.com/sxyazi/yazi/pull/2803\n format!("WARNING: `[manager]` has been deprecated in favor of the new `[mgr]`, see #2803 for more details: https://github.com/sxyazi/yazi/pull/2803\n
Trying to migrate your config automatically failed, please rename the file manually, error while writing {p:?}: \n{e:?}\n").as_bytes(), Trying to migrate your config automatically failed, please edit the file manually, error while writing {p:?}: \n{e:?}\n").as_bytes(),
); );
} }
new new