| |
@@ -154,7 +154,10 @@
|
| |
break
|
| |
|
| |
except OSError:
|
| |
- log.error("Problem writing to {}.".format(config_data.PRISTINE))
|
| |
+ # note: suppress inside exception warnings
|
| |
+ raise TestcloudImageError(
|
| |
+ 'Problem writing to {}. Are you in group testcloud?'.format(local_path)
|
| |
+ ) from None
|
| |
|
| |
def _handle_file_url(self, source_path, dest_path, copy=True):
|
| |
if not os.path.exists(dest_path):
|
| |
If user installs testcloud and uses the default configuration
without adding himself to group testcloud, the tool will fail
for him without any clue as config_data.PRISTING does not exist
and testcloud will just print help. The original permission error
is suppressed.
Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com