{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/9982a3c710b42a4e9a08a55aeb53402c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9982a3c710b42a4e9a08a55aeb53402c","url":"https://api.github.com/users/bminer","login":"bminer","id":73755},"milestone":null,"assignee":null,"updated_at":"2011-11-09T09:00:38Z","labels":[],"comments":1,"closed_at":"2011-11-09T09:00:38Z","url":"https://api.github.com/repos/chriso/node-validator/issues/44","body":"I'll admit that I'm being rather picky here, but many computer users don't know what \"strings\" are.  I'd really love to present the user with the node-validator default error message, but \"String is too short\" is not quite what I'd like to present to the user.  \"Value is too short\" is a bit better.\r\n\r\nAll this computer jargon about strings and threads... people will think we are sewing, not programming.\r\n\r\nI'd fork and submit a pull request, but it's such a small change.  Thoughts?","html_url":"https://github.com/chriso/node-validator/issues/44","title":"User-friendly error messages","number":44,"id":2179654,"created_at":"2011-11-08T21:35:52Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/a22a8707c85dff1f5499eaa4fc90c6a9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a22a8707c85dff1f5499eaa4fc90c6a9","url":"https://api.github.com/users/chriso","login":"chriso","id":364903},"updated_at":"2011-11-09T09:00:38Z","url":"https://api.github.com/repos/chriso/node-validator/issues/comments/2678953","body":"Have a look at the README - you can pass a custom error message to the `check()` function which gets thrown on an invalid value:\r\n\r\n```javascript\r\nvar check = require('validator').check;\r\ntry {\r\n    check('abc', 'Please enter a valid integer').notNull().isInt()\r\n} catch (e) {\r\n    console.log(e.message); //Please enter a valid integer\r\n}\r\n```","id":2678953,"created_at":"2011-11-09T09:00:38Z"}}