message: some fixes for github ci build

This commit is contained in:
Dirk-Jan C. Binnema
2022-03-26 20:30:42 +02:00
parent c63755f749
commit 5a28cdfba4
3 changed files with 10 additions and 5 deletions

View File

@ -81,7 +81,7 @@ Message::Message(const std::string& path, const std::string& mdir):
g_strerror(errno));
if (!S_ISREG(statbuf.st_mode))
throw Error(Error::Code::File, "not a regular file: %s", path);
throw Error(Error::Code::File, "not a regular file: %s", path.c_str());
init_gmime();
if (auto msg{MimeMessage::make_from_file(path)}; !msg)