Skip to content

draco_bbox: Use cerr for error messages. And use more specific exit codes.#1

Open
birgerbr wants to merge 1 commit intobbox-croppingfrom
bbox-cropping-improve-error-output
Open

draco_bbox: Use cerr for error messages. And use more specific exit codes.#1
birgerbr wants to merge 1 commit intobbox-croppingfrom
bbox-cropping-improve-error-output

Conversation

@birgerbr
Copy link
Member

@birgerbr birgerbr commented Mar 8, 2019

A typical error with this application is the NoOverlap case, which usually is due to a mismatch of the coordinate systems of the point cloud (.ply) and the mesh (.drc).

By writing the error message to std::cerr and returning more specific exit-codes the user of this application (python code in bim-alignment-sintef or background-worker) can either throw an exception and use the std::cerr in the message as default, and create custom exceptions for specific exit-codes. For example, with ExitCode::NoOverLap, the python code could tell the user to check the manifest.json

@birgerbr birgerbr requested a review from simenandresen March 8, 2019 10:25
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.

1 participant