Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Better exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bertof committed Mar 15, 2017
1 parent 46338ae commit d193cf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion InputHandling/InputHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ void InputHandler::handle(int argc, char **argv) {

// Check if any BSSID is been given
if (bssid_arguments.size() == 0) {
logger->logError("No BSSID found");
throw InvalidInputException("No BSSID found");
}

Expand Down Expand Up @@ -201,6 +200,9 @@ void InputHandler::handle(int argc, char **argv) {
logger->logError(std::string(e.what()));
} catch (HelpScreenException e) {
std::cout << HelpScreen::getHelpScreen() << std::endl;
} catch (NotImplementedException e) {
std::shared_ptr<DoubleLogger> logger(DoubleLogger::getDoubleLogger());
logger->logError(std::string(e.what()));
}
}

Expand Down

0 comments on commit d193cf6

Please sign in to comment.