mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
files: improve collision error message formatting for readability
Render each bullet as a single line at runtime while keeping ~80-column source formatting. Prevents truncation of the colliding path in service logs, reducing the need to inspect journal output.
This commit is contained in:
parent
a42e05d9b1
commit
7500458e85
1 changed files with 5 additions and 5 deletions
|
|
@ -48,11 +48,11 @@ done
|
|||
if [[ ${#collisionErrors[@]} -gt 0 ]] ; then
|
||||
errorEcho "Please do one of the following:
|
||||
- Move or remove the files below and try again.
|
||||
- In standalone mode, use 'home-manager switch -b backup' to back up
|
||||
files automatically.
|
||||
- When used as a NixOS or nix-darwin module, set
|
||||
'home-manager.backupFileExtension'
|
||||
to, for example, 'backup' and rebuild."
|
||||
- In standalone mode, use 'home-manager switch -b backup' to back up"\
|
||||
" files automatically.
|
||||
- When used as a NixOS or nix-darwin module, set"\
|
||||
" 'home-manager.backupFileExtension'"\
|
||||
" to, for example, 'backup' and rebuild."
|
||||
for error in "${collisionErrors[@]}" ; do
|
||||
errorEcho "$error"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue