| Index: client/third_party/oauth2client/clientsecrets.py
|
| diff --git a/client/third_party/oauth2client/clientsecrets.py b/client/third_party/oauth2client/clientsecrets.py
|
| index eba1fd9dc095c206349217afe111c06a56aaff26..4a47d0d911ccf86cea4d530a6a789f6598ad3f75 100644
|
| --- a/client/third_party/oauth2client/clientsecrets.py
|
| +++ b/client/third_party/oauth2client/clientsecrets.py
|
| @@ -121,8 +121,9 @@ def _loadfile(filename):
|
| try:
|
| with open(filename, 'r') as fp:
|
| obj = json.load(fp)
|
| - except IOError:
|
| - raise InvalidClientSecretsError('File not found: "%s"' % filename)
|
| + except IOError as exc:
|
| + raise InvalidClientSecretsError('Error opening file', exc.filename,
|
| + exc.strerror, exc.errno)
|
| return _validate_clientsecrets(obj)
|
|
|
|
|
|
|