Skip to content

Commit a67f76b

Browse files
committed
Added more user feedback strings.
1 parent 2bf64de commit a67f76b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gitnet/commit_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def ignore(self, pattern, ignoreif="match"):
216216
ignore_note = "matches"
217217
elif ignoreif == "no match":
218218
ignore_note = "doesn't match"
219-
summary = "Ignore files that {} the regular expression: {}".format(ignore_note,pattern)
219+
summary = "Ignore files that {} the regular expression: {}".format(ignore_note, pattern)
220220
self_copy.filters.append(summary)
221221
return self_copy
222222

gitnet/log.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def tsv(self, fname, ignore=[], empty_cols=False):
487487
warnings.warn("Non-string input forced to string {} time(s).".format(num_forced))
488488
if fname is not None:
489489
f.close()
490-
out = "Data written to {}".format(fname)
490+
out = "Data written to {} in {}".format(fname, os.getcwd())
491491
print(out)
492492
return out
493493

@@ -564,9 +564,9 @@ def replace_val(self, tag, cur_val, new_val):
564564
elif cur_val != selfcopy.collection[record][tag] and replaced_vals == 0:
565565
status = 1
566566
if status == 0:
567-
warnings.warn("The tag requested does not appear in this collection.")
567+
warnings.warn("Failed. The tag requested does not appear in this collection.")
568568
elif status == 1:
569-
warnings.warn("The value requested does not appear in any records in this collection.")
569+
warnings.warn("Failed. The value requested does not appear in any records in this collection.")
570570
elif status == 2:
571571
print("Success. You have replaced the " + tag + " value: " + str(cur_val) + " " + str(replaced_vals) + " times.")
572572
return selfcopy

0 commit comments

Comments
 (0)