catch all exceptions and show them as unexpected errors
This commit is contained in:
@@ -239,6 +239,10 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
Statusbar::printf("Error: %1%", e.errorMessage());
|
Statusbar::printf("Error: %1%", e.errorMessage());
|
||||||
}
|
}
|
||||||
|
catch (std::exception &e)
|
||||||
|
{
|
||||||
|
Statusbar::printf("Unexpected error: %1%", e.what());
|
||||||
|
}
|
||||||
|
|
||||||
if (myScreen == myPlaylist)
|
if (myScreen == myPlaylist)
|
||||||
myPlaylist->EnableHighlighting();
|
myPlaylist->EnableHighlighting();
|
||||||
|
|||||||
Reference in New Issue
Block a user