about summary refs log tree commit diff stats
path: root/home-manager/wms/river
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-27 18:25:42 +0100
committerene <ene@sils.li>2023-02-27 18:25:42 +0100
commit12dfcae99b3a94a9785cc226b2010f6219c0882d (patch)
treef10135c140d50a0a76ca471cd1c6df1932d12691 /home-manager/wms/river
parentFix(hosts/mammun_on_vm): Add hostname (diff)
downloadnixos-config-12dfcae99b3a94a9785cc226b2010f6219c0882d.tar.gz
nixos-config-12dfcae99b3a94a9785cc226b2010f6219c0882d.zip
Fix(home/wms): Make the error handling more explicit
Diffstat (limited to '')
-rwxr-xr-xhome-manager/wms/river/init3
1 files changed, 2 insertions, 1 deletions
diff --git a/home-manager/wms/river/init b/home-manager/wms/river/init
index c90c143e..543e9e71 100755
--- a/home-manager/wms/river/init
+++ b/home-manager/wms/river/init
@@ -5,7 +5,8 @@
 
 err_fail() {
     if ! "$@";then
-        printf "%s\n" "$*" >> ~/river_log
+        warning "\"$*\" failed!\n" >> ~/river_log
+        msg "Executing the safe init!"
         exec ~/.config/river/res/safe_init
     fi
 }