Skip to content

Commit

Permalink
adjust message text in invalid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Dec 30, 2024
1 parent d457308 commit 53eb105
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/polyscope/check_invalid_values.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ void checkInvalidValues(std::string name, const std::vector<T>& data) {
if (options::warnForInvalidValues) {
for (const T& val : data) {
if (!allComponentsFinite(val)) {
warning("Invalid +-inf or NaN values detected.\n(set warnForInvalidValues=false to disable this warning)",
"In buffer: " + name);
warning("Invalid +-inf or NaN values detected",
"in buffer: " + name + "\n(set warnForInvalidValues=false to disable)");
break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/camera_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ CameraView::CameraView(std::string name, const CameraParameters& params_)

if (options::warnForInvalidValues) {
if (!params.isfinite()) {
warning("Invalid +-inf or NaN values detected.\n(set warnForInvalidValues=false to disable this warning)",
"In camera view: " + name);
warning("Invalid +-inf or NaN values detected",
"in camera view parameters: " + name + "\n(set warnForInvalidValues=false to disable)");
}
}

Expand Down

0 comments on commit 53eb105

Please sign in to comment.