summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-12-17 16:59:40 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-12-17 16:59:40 -0500
commit1393968c5a1db1239a30c901616738c5b44d86c8 (patch)
tree7aeb2764eb72e79d5e9add5c22705d91a9099132
parentdfaf01c692c6252dcbd4edd33ddebb7f74982b57 (diff)
Re-did the error messages in at combox.file
-rw-r--r--combox/file.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/combox/file.py b/combox/file.py
index adafbe6..3b88381 100644
--- a/combox/file.py
+++ b/combox/file.py
@@ -149,7 +149,7 @@ def mk_dir(directory):
try:
os.mkdir(directory)
except OSError, e:
- log_e("%r Something wrong. report bug to sravik@bgsu.edu" % e)
+ log_e("Error when trying to make directory %s" % directory)
def rm_nodedir(directory, config):
@@ -179,7 +179,7 @@ def rm_path(fpath):
elif path.isdir(fpath):
os.rmdir(fpath)
except OSError, e:
- log_e("%r Something wrong. report bug to sravik@bgsu.edu" % e)
+ log_e("Error when trying to remove path %s" % fpath)
def move_nodedir(src, dest, config):
@@ -202,7 +202,7 @@ def move_nodedir(src, dest, config):
try:
os.rename(src_dir_path, dest_dir_path)
except OSError, e:
- log_e("%r Something wrong. report bug to sravik@bgsu.edu" % e)
+ log_e("Error when trying to rename %s -> %s" % (src_dir_path, dest_dir_path))
def rm_shards(fpath, config):
@@ -232,7 +232,7 @@ def rm_shards(fpath, config):
try:
os.remove(shard)
except OSError, e:
- log_e("%r Something wrong. report bug to sravik@bgsu.edu" % e)
+ log_e("Error when trying to remove shard %s" % shard)
def move_shards(src, dest, config):
@@ -269,7 +269,7 @@ def move_shards(src, dest, config):
try:
os.rename(src_shard, dest_shard)
except OSError, e:
- log_e("%r Something wrong. report bug to sravik@bgsu.edu" % e)
+ log_e("Error when trying to rename shard %s -> %s" % (src_shard, dest_shard))
def purge_dir(p):