{"action":"opened","issue":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1267","labels_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1267/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1267/comments","events_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1267/events","html_url":"https://github.com/aldeed/meteor-autoform/issues/1267","id":113709418,"number":1267,"title":"Error not pushed to UI, getting Error Invalid [400] instead","user":{"login":"xpluscal","id":3706722,"avatar_url":"https://avatars.githubusercontent.com/u/3706722?v=3","gravatar_id":"","url":"https://api.github.com/users/xpluscal","html_url":"https://github.com/xpluscal","followers_url":"https://api.github.com/users/xpluscal/followers","following_url":"https://api.github.com/users/xpluscal/following{/other_user}","gists_url":"https://api.github.com/users/xpluscal/gists{/gist_id}","starred_url":"https://api.github.com/users/xpluscal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpluscal/subscriptions","organizations_url":"https://api.github.com/users/xpluscal/orgs","repos_url":"https://api.github.com/users/xpluscal/repos","events_url":"https://api.github.com/users/xpluscal/events{/privacy}","received_events_url":"https://api.github.com/users/xpluscal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-27T23:14:05Z","updated_at":"2015-10-27T23:14:05Z","closed_at":null,"body":"Hi!\r\n\r\nIm trying to update the User Profile when the user submits a request but I dont see the Validation Errors pushed to the UI. Instead I get the following error:\r\n\r\n````javascript\r\n\r\nerrorClass {error: 400, reason: \"INVALID\", details: \"[{\"name\":\"profile.gender\",\"type\":\"required\",\"value\":null}]\", message: \"INVALID [400]\", errorType: \"Meteor.Error\"}details: \"[{\"name\":\"profile.gender\",\"type\":\"required\",\"value\":null}]\"error: 400errorType: \"Meteor.Error\"message: \"INVALID [400]\"reason: \"INVALID\"stack: (...)get stack: ()set stack: ()__proto__: Middle\r\n\r\n````\r\n\r\nWhen signing up, not all the Profile Details will be inserted, so I made them optional on insert with this function:\r\n\r\n````javascript\r\n\r\nprofile: {\r\n        type: Schema.UserProfile,\r\n\t\t\t\toptional: function() {\r\n            return this.isInsert\r\n        }\r\n},\r\n\r\n````\r\n\r\nSo when a validation on a field on update fails, I only receive this error.\r\nAny help is highly appreciated.\r\n\r\nCheers"}}