Added better error message. not much else can be done

This commit is contained in:
Rudi Grinberg 2012-11-05 18:08:47 -05:00
parent e434af368f
commit 17087fc035
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,8 @@ def WatchAddAction(option, opt, value, parser):
print "%s added to watched folder list successfully" % path print "%s added to watched folder list successfully" % path
else: else:
print "Adding a watched folder failed: %s" % res['msg']['error'] print "Adding a watched folder failed: %s" % res['msg']['error']
print "This error most likely caused by wrong permissions"
print "Try fixing this error by chmodding the parent directory(ies)"
else: else:
print "Given path is not a directory: %s" % path print "Given path is not a directory: %s" % path