Skip to content

Commit

Permalink
Improving the error message for "modules deleted"
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Sep 5, 2024
1 parent 07518ba commit 5a80e9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build_changed_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def verify_no_existing_modules_removed(upstream_module_versions, current_module_
upstream_modules = {version[0] for version in upstream_module_versions}
modules = {version[0] for version in current_module_versions}
diff = upstream_modules - modules
assert len(diff) == 0, "module(s) deleted: %r" % diff
assert len(diff) == 0, dedent(f"""\
module(s) deleted: {repr(diff)}
You may want to add new entries to ./pkgs/upgrade-map
""")

def main():
parser = argparse.ArgumentParser(
Expand Down

0 comments on commit 5a80e9f

Please sign in to comment.