We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See #380 (comment).
Maybe we can add some API (to ObjectService? somewhere else?) to keep track of human-friendly types, such as:
ObjectService
String friendlyType = objectService.getHumanFriendlyName(Type type); // e.g. RandomAccessibleInterval => "an image"
(falling back to "an object"), and then something like:
"an object"
"This operation requires " + name + " of type " + type + "."
... to generate an error message such as:
This operation requires an image of type RandomAccessibleInterval.
The text was updated successfully, but these errors were encountered:
While looking into this, I was surprised to find that there is a different (slightly better?) message already, located in CheckInputsPreprocessor:
CheckInputsPreprocessor
scijava-common/src/main/java/org/scijava/module/process/CheckInputsPreprocessor.java
Lines 56 to 58 in 3d64e2a
... but it never/rarely gets executed because AbstractInputHarvester is taking it:
AbstractInputHarvester
scijava-common/src/main/java/org/scijava/widget/AbstractInputHarvester.java
Lines 121 to 124 in 3d64e2a
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
See #380 (comment).
Maybe we can add some API (to
ObjectService
? somewhere else?) to keep track of human-friendly types, such as:(falling back to
"an object"
),and then something like:
... to generate an error message such as:
The text was updated successfully, but these errors were encountered: