Updated feature: display different error messages for different token related errors.