]> git.ipfire.org Git - thirdparty/patchwork.git/commit
pwclient: handle missing ~/.pwclientrc better
authorMike Frysinger <vapier@chromium.org>
Fri, 16 Oct 2015 21:15:29 +0000 (17:15 -0400)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 16 Oct 2015 22:20:44 +0000 (23:20 +0100)
commit703207007ebb7af48e359b64950aea0602d198b4
tree3d6dda010d518a488bad9f08b7593af87fcd55b6
parente13da7b7f05d1fc12d6315d99f945c91d4ae6353
pwclient: handle missing ~/.pwclientrc better

The upgrade path will crash if ~/.pwclientrc doesn't exist, so add an
explicit check for the file before we try to "upgrade" it.

The default error messages don't mention the config file, so it can be
a bit confusing what pwclient is complaining about when running.

Signed-off-by: Mike Frysinger <vapier@chromium.org>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Stephen Finucane <stephen.finucane@hotmail.com>
patchwork/bin/pwclient