Return default max chars on exception in get_max_chars().
This commit is contained in:
parent
1a99e8a276
commit
fd5275f4a3
|
@ -73,6 +73,7 @@ uint64_t Instance::get_max_chars()
|
||||||
catch (const exception &e)
|
catch (const exception &e)
|
||||||
{
|
{
|
||||||
debuglog << "Unexpected exception: " << e.what() << '\n';
|
debuglog << "Unexpected exception: " << e.what() << '\n';
|
||||||
|
return default_max_chars;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user