From 6c7a0313673687368a33197e58bc28f4290ec244 Mon Sep 17 00:00:00 2001 From: piegames Date: Thu, 14 May 2020 16:02:31 +0200 Subject: [PATCH] files: print source path for detected collision PR #1236 --- modules/files.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/files.nix b/modules/files.nix index c29924796..199fd921d 100644 --- a/modules/files.nix +++ b/modules/files.nix @@ -90,10 +90,10 @@ in errorEcho "Existing file '$backup' would be clobbered by backing up '$targetPath'" collision=1 else - warnEcho "Existing file '$targetPath' is in the way, will be moved to '$backup'" + warnEcho "Existing file '$targetPath' is in the way of '$sourcePath', will be moved to '$backup'" fi else - errorEcho "Existing file '$targetPath' is in the way" + errorEcho "Existing file '$targetPath' is in the way of '$sourcePath'" collision=1 fi fi