Add missing header.
This commit is contained in:
parent
597cf41668
commit
40d985f9af
|
@ -18,10 +18,13 @@
|
||||||
#include "instance.hpp"
|
#include "instance.hpp"
|
||||||
#include "log.hpp"
|
#include "log.hpp"
|
||||||
|
|
||||||
|
#include <exception>
|
||||||
|
|
||||||
namespace mastodonpp
|
namespace mastodonpp
|
||||||
{
|
{
|
||||||
|
|
||||||
using std::stoull;
|
using std::stoull;
|
||||||
|
using std::exception;
|
||||||
|
|
||||||
Instance::Instance(const string_view hostname, const string_view access_token)
|
Instance::Instance(const string_view hostname, const string_view access_token)
|
||||||
: _hostname{hostname}
|
: _hostname{hostname}
|
||||||
|
@ -65,7 +68,7 @@ uint64_t Instance::get_max_chars()
|
||||||
}();
|
}();
|
||||||
debuglog << "Set _max_chars to: " << _max_chars << '\n';
|
debuglog << "Set _max_chars to: " << _max_chars << '\n';
|
||||||
}
|
}
|
||||||
catch (const std::exception &e)
|
catch (const exception &e)
|
||||||
{
|
{
|
||||||
debuglog << "Unexpected exception: " << e.what() << '\n';
|
debuglog << "Unexpected exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user