Skip to content

Commit

Permalink
[BUGFIX beta] Use "computed properties" in the msg
Browse files Browse the repository at this point in the history
  • Loading branch information
chancancode authored Jan 30, 2018
1 parent 4057851 commit 7c26d67
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/ember-metal/lib/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,12 @@ if (EMBER_METAL_ES5_GETTERS) {
// development to aid in development asertions. Production builds of
// ember strip this entire branch out.
let messageFor = function(obj, keyName, property, value) {
return `You attempted to access the \`${keyName}.${String(property)}\` property ` +
`(of ${obj}). Due to certain internal implementation details of Ember, ` +
`the \`${keyName}\` property previously contained an internal "descriptor" ` +
`object (a private API), therefore \`${keyName}.${String(property)}\` would have ` +
`been \`${String(value).replace(/\n/g, ' ')}\`. This internal implementation ` +
return `You attempted to access \`${keyName}.${String(property)}\` (of ${obj}), ` +
`where \`${keyName}\` is a computed property.\n\n` +
`Due to certain internal implementation details of Ember, the \`${keyName}\` ` +
`property previously contained an internal "descriptor" object (a private API), ` +
`therefore \`${keyName}.${String(property)}\` would have been ` +
`\`${String(value).replace(/\n/g, ' ')}\`. This internal implementation ` +
`detail was never intended to be a public (or even intimate) API.\n\n` +
`This internal implementation detail has now changed and the (still private) ` +
`"descriptor" object has been relocated to the object's "meta" (also a ` +
Expand Down

0 comments on commit 7c26d67

Please sign in to comment.