toymaker.git

commit 3bd2dd685da66d25742d25f2758d655c59b3f7a8

Author: Adam <git@apiote.xyz>

change messages in 404

 toymaker.sh | 8 ++++----


diff --git a/toymaker.sh b/toymaker.sh
index 8c35678651acb5313c1f4561faee6e3c12010cfa..8faa0476ac1c379496354dd1fac2cf21c85f24f3 100755
--- a/toymaker.sh
+++ b/toymaker.sh
@@ -199,7 +199,7 @@ 				status=$(echo "$r" | cut -d ';' -f1)
 				content=$(echo "$r" | cut -d ';' -f2)
 				if [ "$status" = 'n' ]
 				then
-					respond404 "$path"
+					respond404 "toy $toy"
 					return 1
 				elif page=$(templateMessage "$toy;$content" 'toy' 'text/html')
 				then
@@ -223,7 +223,7 @@ 			# artifacts=$(item_artifacts "$toy" "$item")
 			status=$(echo "$r" | head -n1 | cut -d ';' -f1)
 			if [ "$status" = 'n' ]
 			then
-				respond404 "$path"
+				respond404 "item $toy/$item"
 				return 1
 			elif page=$(templateMessage "$toy;$item;$r" 'item' "$accept")  # todo add artifacts to message
 			then
@@ -248,7 +248,7 @@ 			r=$(get_artifact "$toy" "$item" "$artifactName")
 			status=$(echo "$r" | cut -d ';' -f 1)
 			if [ "$status" = 'n' ]
 			then
-				respond404 "$path"
+				respond404 "artifact $toy/$item/$artifactName"
 				return 1
 			else
 				contentType=$(echo "$r" | cut -d ';' -f 2)
@@ -272,7 +272,7 @@ 		fi
 
 		if ! (podman image ls --format "{{.Repository}}" | grep -x "localhost/toy_$toy" -q)
 		then
-			respond404 "$path"
+			respond404 "toy $toy"
 			return 1
 		fi