Skip to content

Commit

Permalink
Add friendlier message for creating extents without updated views (#1016
Browse files Browse the repository at this point in the history
)

Co-authored-by: Tisham Dhar <[email protected]>

(cherry picked from commit ffa043c)
  • Loading branch information
whatnick authored and SpacemanPaul committed May 13, 2024
1 parent 193bcca commit 02f1be4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datacube_ows/update_ranges_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ def main(layers: list[str],
click.echo("")
click.echo(" Try running with the --schema options first.")
sys.exit(1)
elif isinstance(e.orig, psycopg2.errors.NotNullViloation):
click.echo("ERROR: OWS materialised views are most likely missing a newly indexed product")
click.echo("")
click.echo(" Try running with the --viewes options first.")
sys.exit(1)
else:
raise e
if errors:
Expand Down

0 comments on commit 02f1be4

Please sign in to comment.