Add more info to the error message (#191)

A better way to do this is to treat each exception case.
master
Vitor Araujo Boufleur 2017-06-07 06:53:02 -03:00 committed by Ronan
parent 359daa8cbe
commit 9e1fafdfac
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ def get_config():
token = config['scdl']['auth_token']
path = config['scdl']['path']
except:
logger.error('Are you sure scdl.cfg is in $HOME/.config/scdl/ ?')
logger.error('Are you sure scdl.cfg is in $HOME/.config/scdl/ ? Are both "auth_token" and "path" defined there ?')
sys.exit()
if os.path.exists(path):
os.chdir(path)