Skip to content

Commit

Permalink
more log tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutymane committed Jun 30, 2023
1 parent 2555856 commit 1c8fb0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

void print_error(const char *message)
{
printf("\e[91m\e[1m"
"Error:\n"
printf("\e[41m\e[1m"
"Error:"
"\e[49m\n"
"\e[91m"
"%s\n",
message);
}
Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ int main(int argc, char **argv)

if (!std::filesystem::exists(filename))
{
print_error(("Path '" + filename + "' does not exist!").c_str());
print_error(("Path \"" + filename + "\" does not exist!").c_str());
abort();
}

Expand Down

0 comments on commit 1c8fb0c

Please sign in to comment.