-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Delete the name of collections in error messages #422
Comments
Probably good to leave for development and get rid of it in production. |
I'm not sure this is an issue.. These error messages should never be seen by the user. Errors should be caught, handled in application code, and custom error messages propagated to the UI. |
That might be so, but with Meteor it is easy to do |
@copleykj @StorytellerCZ |
I think the compromise might be that on production the collection name will be hidden while we leave it as is for development. |
When errors are returned (If the input information is incorrect) , The name of the corresponding collection is also in the error message . LIKE this :
name is required in CollectionName insert
i want this part (in CollectionName insert ) gone.
error messages belong to software users, and users do not need to see the name of the collection.
And this part should not be returned at all.
And this is about this line:
https://github.com/Meteor-Community-Packages/meteor-collection2/blob/master/package/collection2/collection2.js#L479
I also raised this issue in the simpl-schema, but it is not related to simpl-schema.
For more details, please refer to the following links:
longshotlabs/simpl-schema#408
https://forums.meteor.com/t/delete-the-name-of-collections-in-error-messages-in-simpl-schema/54073/18
The text was updated successfully, but these errors were encountered: