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

cmgr error reporting should be more verbose #3

Open
dbrumley opened this issue Nov 30, 2024 · 1 comment
Open

cmgr error reporting should be more verbose #3

dbrumley opened this issue Nov 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@dbrumley
Copy link

cmgr should tell you what it was trying to do, and on which problem, when it encounters an error.

Case in point: I have 46 challenges in a schema file, and I get this error but have no idea which challenge is causing it:

error: failed to build image: The command '/bin/sh -c make && echo "picoCTF{$FLAG}" > flag.txt' returned a non-zero code: 2

I went through the docs and found export CMGR_LOGGING=debug, which helps here, but it's annoying that I had to do these extra steps.

@dbrumley dbrumley added the enhancement New feature or request label Nov 30, 2024
@dmartin
Copy link

dmartin commented Dec 2, 2024

Agreed, templating challenge IDs and additional metadata directly into error messages would be a good improvement to reduce the necessity for debug logging.

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

No branches or pull requests

2 participants