Reviewed and changed error handling (parameter checking).
Authored by: keess 2003-08-15
Parent: [r654]
Child: [r656]