#!/bin/sh
#$Id: errors-demo 25 2009-03-13 16:07:51Z j-waldby $

# errors-demo -- Exhibit some error messages
# (A yume-documentation example)
demo() {
    E=$1 C=$2 shift 2
    yume $*
    echo "is error $E due to $C,"
    shift 2
    echo "from: yume $*"
}
echo
echo
echo This file invokes yume with arguments that should produce some
echo error messages on stderr, with no menu windows appearing.
echo Each error message is followed by a note about it and the
echo command that caused it.
echo
demo ERR_FILE "infinite include with default depth" '-in in-test-7'
demo ERR_FILE "infinite include with depth limit 567" '-de FStackLim:567 -in in-test-7'
demo ERR_MISSARG "no geometry string for -at" -at
demo ERR_GEOM "extra sign in geometry string" '-at 280x220+-0+640'
demo ERR_WEXP "a -in problem (metachar in wrong place)" "-in $0"
demo ERR_DECODE "wrong color name" '-de ddRolCol:REDD'
echo
