Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from benx1n/develop
Browse files Browse the repository at this point in the history
[#] 修复string to char*导致的乱码
  • Loading branch information
EtherealAO authored Jun 30, 2022
2 parents 2f9d4cb + 8166389 commit a39cc7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/carrotjuicer/notifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace notifier
httplib::Error error = res.error();
if (error != httplib::Error::Success)
{
printf("Unexpected error from notifier: %s \n", httplib::to_string(error));
std::cout << "Unexpected error from notifier: " << httplib::to_string(error) << "\n";
}
}
void notify_request(const std::string& data)
Expand All @@ -38,7 +38,7 @@ namespace notifier
httplib::Error error = res.error();
if (error != httplib::Error::Success)
{
printf("Unexpected error from notifier: %s \n", httplib::to_string(error));
std::cout << "Unexpected error from notifier: " << httplib::to_string(error) << "\n";
}
}
}

0 comments on commit a39cc7d

Please sign in to comment.