Skip to content

Commit

Permalink
Improve error message for unrecognized base storage
Browse files Browse the repository at this point in the history
Closes gh-858
  • Loading branch information
inducer committed Jul 23, 2024
1 parent 6f257c2 commit dd2da55
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions loopy/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -1312,9 +1312,12 @@ def check_for_nested_base_storage(kernel: LoopKernel) -> None:
storage_array = name_to_array.get(ary.base_storage, None)

if storage_array is None:
raise ValueError("nothing known about storage array "
raise LoopyError("Nothing known about storage array "
f"'{ary.base_storage}' serving as base_storage of "
f"'{ary.name}'")
f"'{ary.name}'. "
"(Note: base storage is no longer automatically allocated. "
"Call allocate_temporaries_for_base_storage to automatically "
"allocate.)")

if storage_array.base_storage:
raise ValueError("storage array "
Expand Down

0 comments on commit dd2da55

Please sign in to comment.