summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortastytea2020-01-11 23:04:40 +0100
committertastytea2020-01-11 23:04:40 +0100
commitfd5275f4a39c6fca52fa49d43f26791c4c297e9f (patch)
tree7013d6fe84c714b011dbbab6617f53481df561b7 /src
parent1a99e8a2761f5fb946bb5fea7c9efd34da37f691 (diff)
downloadmastodonpp-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.cpp1
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;
}
}