Better error messages for the namespace argument

Work around when the first arg is -1

When seemingly valid arguments are given for non existent classes,
return a meaningful error message.