Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more helpful error messages for KeyError #158

Open
caizixian opened this issue Aug 7, 2024 · 0 comments
Open

Add more helpful error messages for KeyError #158

caizixian opened this issue Aug 7, 2024 · 0 comments

Comments

@caizixian
Copy link
Member

[INFO] 2024-08-06 06:29:57,770 minheap.py:190 Temporary directory: /tmp/minheap-9i51vtq5
Traceback (most recent call last):
  File "/usr/local/bin/running", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/running/__main__.py", line 50, in main
    if m.run(args):
  File "/usr/local/lib/python3.10/dist-packages/running/command/minheap.py", line 192, in run
    run_with_persistence(result, Path(minheap_dir), None, attempts)
  File "/usr/local/lib/python3.10/dist-packages/running/command/minheap.py", line 115, in run_with_persistence
    runtime, mods = parse_config_str(configuration, c)
  File "/usr/local/lib/python3.10/dist-packages/running/util.py", line 68, in parse_config_str
    runtime = configuration.get("runtimes")[c.split("|")[0].strip()]
KeyError: 'jdk21'

Should tell the user which part of the config that the lookup happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant