Be more resilient to potential aria2 error.

This commit is contained in:
Matthieu Gautier
2018-10-16 17:42:16 +02:00
parent bb1f777078
commit 8176a6eded
2 changed files with 23 additions and 10 deletions

View File

@ -35,6 +35,11 @@ struct DownloadedFile {
std::string path;
};
class AriaError : public std::runtime_error {
public:
AriaError(const std::string& message) : std::runtime_error(message) {}
};
/**
* A tool to download things.
*