Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 63e330d

Browse files
committed
chore(error message): make error message for client-side navigation clearer
Closes #2643
1 parent 5c8b88e commit 63e330d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: lib/clientsidescripts.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ functions.waitForAngular = function(rootSelector, callback) {
5656
return;
5757
}
5858
if (!window.angular) {
59-
throw new Error('angular could not be found on the window');
59+
throw new Error('window.angular is undefined. This could be either ' +
60+
'because this is a non-angular page or because your test involves ' +
61+
'client-side navigation, which can interfere with Protractor\'s ' +
62+
'bootstrapping. See http://git.io/v4gXM for details');
6063
}
6164
if (angular.getTestability) {
6265
angular.getTestability(el).whenStable(callback);

0 commit comments

Comments
 (0)