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

Print expected type instead of its string representation #243

Closed
trishankkarthik opened this issue Aug 1, 2014 · 2 comments
Closed

Print expected type instead of its string representation #243

trishankkarthik opened this issue Aug 1, 2014 · 2 comments

Comments

@trishankkarthik
Copy link
Contributor

Observed

Presently, if a user passes an object O other a list to a Schema ListOf object, the error message will print the string representation S of O. Unfortunately, the error message is obscured when the S is large (e.g. O is a set with hundreds of thousands of strings).

Expected

I think the error message would be just as effective if we simply printed the type of O.

Thanks!

@joshuagl
Copy link
Member

Schema objects were moved to securesystemslib, but this issue is replicated in the new location.
ListOf's check_match prints the repr() of the object, not the type() see schema.py:523

PR #794 was closed without comment, is this change desirable? Or should we just close this issue?

@trishankatdatadog
Copy link
Member

Moved to securesystemslib

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

3 participants