[gs-bugs] [Bug 692604] New: error message is nonsense when option value is invalid

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Sun Oct 16 22:11:13 UTC 2011


           Summary: error message is nonsense when option value is invalid
           Product: Ghostscript
           Version: 9.04
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P4
         Component: General
        AssignedTo: support at artifex.com
        ReportedBy: matteosistisette at gmail.com
         QAContact: gs-bugs at ghostscript.com

I happened to write by mistake:

-dGraphicsAlphaBits=4 -dTextAlphaBit=n

with a literal 'n' instead of replacing it with a number.

The error message that I got was:

-dvar=name requires name=null, true, or false

This error message doesn't make any sense to the user.

A correct error message would be something like 
"invalid value 'n' for option -dTextAlphaBit"

Note there are two issues:
1. the error message doesn't make sense to the user (why null, true or false?)
(I do understand, I guess, where this comes from, but this is too low-level)
2. it doesn't tell you WHICH option it is complaining about.

Issue 2 is very important too. I spent several minutes staring at the
-dGraphicsAlphaBit=4 and wondering what was wrong with the 4.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list