source: trunk/1001Screenshot/__error__.sh@ 276

Last change on this file since 276 was 175, checked in by Nicholas Riley, 19 years ago

screenshot.py: On Tiger, don't worry if the output file doesn't exist.

setup.py: Use data_files instead of py2app resources, per Bob
Ippolito; it works equivalently and preserves permissions on
error.sh.

error.sh: Custom error handling.

  • Property svn:executable set to *
File size: 572 bytes
Line 
1#!/bin/sh
2if ( test -n "$2" ) ; then
3 echo "$1 Error"
4 if ( test "$2" = "HandledError" ) ; then
5 echo "$3"
6 echo "ERRORURL: mailto:1001screenshot@sabi.net Send Feedback"
7 else
8 echo "An unexpected error has occurred."
9 echo ""
10 echo "$2: $3"
11 echo ""
12 echo "See the Console for a detailed traceback."
13 echo "ERRORURL: mailto:1001screenshot@sabi.net?subject=$2 Report Bug"
14 fi
15else
16 echo "$1 Error"
17 echo "MacPython 2.3 is required to run this application.";
18 echo "ERRORURL: http://homepages.cwi.nl/~jack/macpython/index.html Visit the MacPython Website";
19fi
Note: See TracBrowser for help on using the repository browser.