diff options
Diffstat (limited to 'scripts/nix-switch')
-rwxr-xr-x | scripts/nix-switch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-switch b/scripts/nix-switch index 570f7e9e9227..d58a5f249e18 100755 --- a/scripts/nix-switch +++ b/scripts/nix-switch @@ -30,7 +30,7 @@ while (-e "$linkdir/$id-$nr") { $nr++; } my $link = "$linkdir/$id-$nr"; # Create a symlink from $link to $pkgdir. -symlink($pkgdir, $link) or die "cannot create $link"; +symlink($pkgdir, $link) or die "cannot create $link: $!"; # Also store the hash of $pkgdir. This is useful for garbage # collection and the like. |