diff options
author | tastytea | 2020-01-11 23:04:40 +0100 |
---|---|---|
committer | tastytea | 2020-01-11 23:04:40 +0100 |
commit | fd5275f4a39c6fca52fa49d43f26791c4c297e9f (patch) | |
tree | 7013d6fe84c714b011dbbab6617f53481df561b7 /src | |
parent | 1a99e8a2761f5fb946bb5fea7c9efd34da37f691 (diff) | |
download | mastodonpp-fd5275f4a39c6fca52fa49d43f26791c4c297e9f.tar mastodonpp-fd5275f4a39c6fca52fa49d43f26791c4c297e9f.tar.gz mastodonpp-fd5275f4a39c6fca52fa49d43f26791c4c297e9f.zip |
Return default max chars on exception in get_max_chars().
Diffstat (limited to 'src')
-rw-r--r-- | src/instance.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/instance.cpp b/src/instance.cpp index f80e430..172489c 100644 --- a/src/instance.cpp +++ b/src/instance.cpp @@ -73,6 +73,7 @@ uint64_t Instance::get_max_chars() catch (const exception &e) { debuglog << "Unexpected exception: " << e.what() << '\n'; + return default_max_chars; } } |