Coder Social home page Coder Social logo

Comments (5)

copleykj avatar copleykj commented on July 18, 2024 1

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.

from meteor-collection2.

StorytellerCZ avatar StorytellerCZ commented on July 18, 2024

Probably good to leave for development and get rid of it in production.

from meteor-collection2.

StorytellerCZ avatar StorytellerCZ commented on July 18, 2024

That might be so, but with Meteor it is easy to do error.message in method callback and just return that, so it is probably too common (I'm guilty of this as well). But if your error handling depends on string parsing with the collection name then this would be a breaking change...

from meteor-collection2.

Saeeed-B avatar Saeeed-B commented on July 18, 2024

@copleykj @StorytellerCZ
This is exactly the problem, we can easily show the exact error to the user, and more importantly, this error is in any language we want.
And when we show these messages to the user, there is no need for many additional validations.
Please look at the error system in Laravel, they take the user field and if it does not match any of the credentials, they show the message corresponding to the same credential.
If we can make the validation only in the collection is great, because it no longer matters where the input comes from, in any case it must have the necessary validity.
Also, if it is not valid, a very accurate message will be displayed.
I hope I was able to get it right, because I do not speak English very well

from meteor-collection2.

StorytellerCZ avatar StorytellerCZ commented on July 18, 2024

I think the compromise might be that on production the collection name will be hidden while we leave it as is for development.

from meteor-collection2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.