Skip to content

Commit a158128

Browse files
committed
Clarify Error Message
Change "You can't call .one(12)" -> "For example, you can't call .one(12)." This clarifies the expression to make sure people understand .one(12) call is an example of something you can't do.
1 parent cc7348b commit a158128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/restangular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ module.provider('Restangular', function() {
804804
function one(parent, route, id, singleOne) {
805805
if (_.isNumber(route) || _.isNumber(parent)) {
806806
var error = 'You\'re creating a Restangular entity with the number ';
807-
error += 'instead of the route or the parent. You can\'t call .one(12)';
807+
error += 'instead of the route or the parent. For example, you can\'t call .one(12)';
808808
throw new Error(error);
809809
}
810810
var elem = {};

0 commit comments

Comments
 (0)