title: Ember Route: Cannot read property ‘id’ of undefined
body: <p>I'm getting this error, where I am trying to retrieve a user that DO NOT exist on purpose ofcouse:</p>
  
  <blockquote>
    <p>Error while processing route: user Cannot read property 'id' of
    undefined TypeError: Cannot read property 'id' of undefined</p>
  </blockquote>
  
  <p>Instead of this console error, can I give the user an error message saying, 'the user does not exist' or something like that through the route or a controller to the view?</p>
  
  <p>Heres my route</p>
  
  <pre><code>App.Router.map(function () {
      this.resource('user', { path: '/user/:user_id' });
  });
  </code></pre>
  
  <p>And here i retrieve the user</p>
  
  <pre><code>App.UserRoute = Ember.Route.extend({
      model: function(params) {
          return this.store.find('user', params.user_id);
      },
  });
  </code></pre>
  
  <p>Hope you understand and can help me proceed. Thanks in regards!</p>