X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=Error.page;h=98538b9b480dedcbf906b023ef963af273359c11;hb=aac817bdb1044e7cc1ddb3aa46433c18e888bb2a;hp=61af555b1a72397ebd7b41dc67e08c85b16dbac0;hpb=62c3d9c54dec22772956bea9f2ec482c891e511e;p=busy
diff --git a/Error.page b/Error.page
index 61af555..98538b9 100644
--- a/Error.page
+++ b/Error.page
@@ -15,10 +15,13 @@
# You should have received a copy of the GNU Affero General Public License
# along with Busy. If not, see .
-reason=$(egrep -o '(^|&)r=.+(&|$)' <<<"${QUERY_STRING}" |sed 's,&,,g;s,r=,,')
+[ -z "$reason" ] && reason=$(egrep -o '(^|&)r=.+(&|$)' <<<"${QUERY_STRING}" |sed 's,&,,g;s,r=,,')
[ -z "$reason" ] && reason="other"
-echo '
Error
'
+echo "
+
+
Error
+"
case "${reason}" in
tooSmall) echo 'You need to select a file for uploading.'
;;
@@ -28,6 +31,9 @@ case "${reason}" in
;;
input) echo 'Invalid set of input data.'
;;
+ noaccess) echo '... because you were probably trying to do something nasty.'
+ ;;
*) echo 'Unknown generic fuckup :-('
;;
esac
+echo ""