Skip to content

Commit

Permalink
rename: Add colour
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Aug 22, 2023
1 parent c9e29d6 commit e3efaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rename.pike
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int main(int argc, array(string) argv)
}
string newname;
if (mixed ex = catch {newname = sprintf(to, @match);}) {
write("%-*s | <%s>\n", maxlen, fn, (describe_error(ex) / "\n")[0]);
write("%-*s | \e[1;31m<%s>\e[0m\n", maxlen, fn, (describe_error(ex) / "\n")[0]);
continue;
}
if (args->n) write("%-*s | %s\n", maxlen, fn, newname);
Expand Down

0 comments on commit e3efaac

Please sign in to comment.