Skip to content

Commit

Permalink
Fix validation error message for invalid band parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jtfell committed Feb 7, 2020
1 parent 5e9697b commit ec7e5f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filters/DEMFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void DEMFilter::prepared(PointTableRef table)
if (m_args->m_dim == Dimension::Id::Unknown)
throwError("Missing dimension with name '" + m_args->m_range.m_name + "'in input PointView.");
if (m_args->m_band <= 0)
throwError("Band must be greater than 1!");
throwError("Band must be greater than 0");

}

Expand Down
2 changes: 1 addition & 1 deletion filters/HAGDEMFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void HAGDEMFilter::ready(PointTableRef table)
void HAGDEMFilter::prepared(PointTableRef table)
{
if (m_band <= 0)
throwError("'band' must be greater than 1");
throwError("Band must be greater than 0");
}

void HAGDEMFilter::filter(PointView& view)
Expand Down

0 comments on commit ec7e5f6

Please sign in to comment.