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

Print descriptive error if PLY file not found #3143

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

xkaraman
Copy link
Contributor

@xkaraman xkaraman commented Jun 10, 2019

Check if file with name file_name exists first before trying to read it and print an error message noting that file was NOT found instead of the generic problem parsing header!.

Closes #2766.

Copy link
Member

@taketwo taketwo left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for contributing!

Minor note for the future: instead of PR title, put a reference to the issue you are fixing in the description together with a verb "closes" or "fixes". This way once the PR is merged, the issue will be closed automatically, which is convenient. (This time I've made this edit myself.)

@xkaraman
Copy link
Contributor Author

Sure, didn't know of that sorry! :)

@SergioRAgostinho SergioRAgostinho merged commit 09704a5 into PointCloudLibrary:master Jun 11, 2019
@taketwo taketwo changed the title Add descriptive error for file not found [Issue #2766] Print descriptive error if PLY file not found Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PLYReader should output appropriate error message when file is not found
3 participants