summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2018-03-30 01:18:18 +0000
committerGitHub <noreply@github.com>2018-03-30 01:18:18 +0000
commita6c8e48840cf1f9e01447ad731c0de53251da05c (patch)
tree30ee0a5b1dbce4922b6df059ac2c4b55071b0e2f /nixos/modules/tasks
parentcef9812b934d0d8de64d6e547a3385af9fe9ef9f (diff)
downloadnixlib-a6c8e48840cf1f9e01447ad731c0de53251da05c.tar
nixlib-a6c8e48840cf1f9e01447ad731c0de53251da05c.tar.gz
nixlib-a6c8e48840cf1f9e01447ad731c0de53251da05c.tar.bz2
nixlib-a6c8e48840cf1f9e01447ad731c0de53251da05c.tar.lz
nixlib-a6c8e48840cf1f9e01447ad731c0de53251da05c.tar.xz
nixlib-a6c8e48840cf1f9e01447ad731c0de53251da05c.tar.zst
nixlib-a6c8e48840cf1f9e01447ad731c0de53251da05c.zip
nixos/network-scripted: print error details
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/network-interfaces-scripted.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/tasks/network-interfaces-scripted.nix b/nixos/modules/tasks/network-interfaces-scripted.nix
index 630fe6d114ce..7656372f514e 100644
--- a/nixos/modules/tasks/network-interfaces-scripted.nix
+++ b/nixos/modules/tasks/network-interfaces-scripted.nix
@@ -192,7 +192,7 @@ let
                     if out=$(ip addr add "${cidr}" dev "${i.name}" 2>&1); then
                       echo "done"
                     elif ! echo "$out" | grep "File exists" >/dev/null 2>&1; then
-                      echo "failed"
+                      echo "'ip addr add "${cidr}" dev "${i.name}"' failed: $out"
                       exit 1
                     fi
                   ''
@@ -213,7 +213,7 @@ let
                      if out=$(ip route add "${cidr}" ${options} ${via} dev "${i.name}" 2>&1); then
                        echo "done"
                      elif ! echo "$out" | grep "File exists" >/dev/null 2>&1; then
-                       echo "failed"
+                       echo "'ip route add "${cidr}" ${options} ${via} dev "${i.name}"' failed: $out"
                        exit 1
                      fi
                   ''