From 487764bcc93cd15a7112920bddf2f9c2316d5a74 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 9 Feb 2007 21:21:38 +0000 Subject: [PATCH] Added explanatory message for permission denied errors. --- src/libprs500/communicate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libprs500/communicate.py b/src/libprs500/communicate.py index 4dbf0be947..ae9508f682 100755 --- a/src/libprs500/communicate.py +++ b/src/libprs500/communicate.py @@ -436,7 +436,8 @@ class PRS500Device(Device): if res.is_unmounted: raise PathError(path + " is not mounted") if res.permission_denied: - raise PathError('Permission denied for: ' + path) + raise PathError('Permission denied for: ' + path + '\nYou can only '+\ + 'operate on paths starting with /Data, a:/ or b:/') if res.code not in (0, PathResponseCodes.IS_FILE): raise PathError(path + " has an unknown error. Code: " + \ hex(res.code))