Skip to content

Commit 3694390

Browse files
committed
docs($resource): re-phrase warning message (has to --> would)
As discussed in angular#13462 (comment).
1 parent 36a3c81 commit 3694390

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ngResource/resource.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ angular.module('ngResource', ['ng']).
582582
if (action.timeout) {
583583
$log.debug('ngResource:\n' +
584584
' Only numeric values are allowed as `timeout`.\n' +
585-
' Promises are not supported in $resource, because the same value has to ' +
586-
'be re-used for multiple requests. If you are looking for a way to cancel ' +
585+
' Promises are not supported in $resource, because the same value would ' +
586+
'be used for multiple requests. If you are looking for a way to cancel ' +
587587
'requests, you should use the `cancellable` option.');
588588
delete action.timeout;
589589
}

test/ngResource/resourceSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1421,8 +1421,8 @@ describe('cancelling requests', function() {
14211421
expect(httpSpy.calls[0].args[0].timeout).toBeUndefined();
14221422
expect($log.debug).toHaveBeenCalledOnceWith('ngResource:\n' +
14231423
' Only numeric values are allowed as `timeout`.\n' +
1424-
' Promises are not supported in $resource, because the same value has to ' +
1425-
'be re-used for multiple requests. If you are looking for a way to cancel ' +
1424+
' Promises are not supported in $resource, because the same value would ' +
1425+
'be used for multiple requests. If you are looking for a way to cancel ' +
14261426
'requests, you should use the `cancellable` option.');
14271427
})
14281428
);

0 commit comments

Comments
 (0)