Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
disallow empty string content
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQFgDMea/JOyx6uXjBQbqbXU6eTTw6iC70BIjVhA9Q8sU1VIi+0hgqrG7oX7DTo3ZRs TtMAhIqPBJ4lDD7BuG9Qw= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
1 week ago
1 changed files, 4 additions(+), 0 deletions(-)
apps/nogui/nushell/tangled.nu
M apps/nogui/nushell/tangled.nuapps/nogui/nushell/tangled.nu
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
diff --git a/apps/nogui/nushell/tangled.nu b/apps/nogui/nushell/tangled.nu
index 7ef73c0326ff8eef5f890da57c5603680ee32c5c..3d09d3791aa5e53a56ad79bfb182c6c81d31c1c2 100644
--- a/apps/nogui/nushell/tangled.nu
+++ b/apps/nogui/nushell/tangled.nu
@@ -25,6 +25,10 @@   if ($description != null) {
     $_desc = $description
   }
 
+  if ($_content == null or $_content == "") {
+    error make {msg: "Cannot create a string with no content"}
+  }
+
   let payload = ({
     "$type": "sh.tangled.string",
     "contents": $_content,