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

Non Descriptive/functioning error message #4

Open
tarrenj opened this issue Oct 2, 2017 · 1 comment
Open

Non Descriptive/functioning error message #4

tarrenj opened this issue Oct 2, 2017 · 1 comment
Assignees

Comments

@tarrenj
Copy link

tarrenj commented Oct 2, 2017

The icon.py script only supports images with 16 or less colors. The expected error message doesn't print when the relevant if statement is met.

The if statement is at:

if (maxcolor+1 > 16):

I've resolved this by replacing the output line:

sys.sterr.write("toomuch colors\n")
with:
print("Too many colors!")

@tarrenj
Copy link
Author

tarrenj commented Oct 2, 2017

print('Too many colors used in %, please use <=16.' % filename) would also work and be much more helpful/descriptive. I haven't tested that exact syntax though.

@tarrenj tarrenj changed the title Error not outputing Non Descriptive/functioning error message Oct 2, 2017
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

2 participants