Fix a boost format string abort

This commit is contained in:
Eelco Dolstra 2016-03-02 20:06:48 +01:00
parent e7655fdcbc
commit 86a2d6471c

View file

@ -108,7 +108,7 @@ bool S3BinaryCacheStore::fileExists(const std::string & path)
if (error.GetErrorType() == Aws::S3::S3Errors::UNKNOWN // FIXME if (error.GetErrorType() == Aws::S3::S3Errors::UNKNOWN // FIXME
&& error.GetMessage().find("404") != std::string::npos) && error.GetMessage().find("404") != std::string::npos)
return false; return false;
throw Error(format("AWS error fetching %s") % path % error.GetMessage()); throw Error(format("AWS error fetching %s: %s") % path % error.GetMessage());
} }
return true; return true;