Skip to content

Commit

Permalink
Displays alert instead of notification when error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
rileytestut committed Sep 27, 2019
1 parent 538d943 commit 194648f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AltServer/AltServerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,18 +314,18 @@ pplx::task<void> AltServerApp::InstallAltStore(std::shared_ptr<Device> installDe
}
else
{
this->ShowNotification("Installation Failed", error.localizedDescription());
MessageBox(NULL, WideStringFromString(error.localizedDescription()).c_str(), L"Installation Failed", MB_OK);
throw;
}
}
catch (Error& error)
{
this->ShowNotification("Installation Failed", error.localizedDescription());
MessageBox(NULL, WideStringFromString(error.localizedDescription()).c_str(), L"Installation Failed", MB_OK);
throw;
}
catch (std::exception& exception)
{
this->ShowNotification("Installation Failed", exception.what());
MessageBox(NULL, WideStringFromString(exception.what()).c_str(), L"Installation Failed", MB_OK);
throw;
}
});
Expand Down

0 comments on commit 194648f

Please sign in to comment.