Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for PhotoAtWaypoint plugin. #2066

Closed
wants to merge 10 commits into from
Closed

Patch for PhotoAtWaypoint plugin. #2066

wants to merge 10 commits into from

Conversation

jediofgever
Copy link
Contributor

#2041 Introduced PhotoAtWaypoint plugin.

A directory path should be given to plugin for saving the photos. If the given directory does not exist we create one with std::experimental::filesystem, but this may throw exceptions if the given path is an invalid one. So a try catch block should surround that part of the code where we try to create directory.
This PR has that.

}
} catch (const std::exception & e) {
std::cerr << e.what() << '\n';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use proper logging please

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also if an exception was thrown, is_enabled_ should be false

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm unfortunately I have no longer access to my laptop after today(for an indefinite time). Could you take care of this for me please ?
Thank you

@SteveMacenski
Copy link
Member

@jediofgever done, I need to open a new PR to merge in those changes since it was on your private fork

@SteveMacenski
Copy link
Member

See #2067

@jediofgever
Copy link
Contributor Author

@SteveMacenski , thanks a lot , had some issues with my PC and sent it to service.

@SteveMacenski
Copy link
Member

Please review #2067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants