Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
e21335d5
...
e21335d585867a5132c68d4913212df0f71d4dd7
authored
2011-10-05 08:29:53 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
better logging messages
1 parent
9ca9c9e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
casper.js
casper.js
View file @
e21335d
...
...
@@ -580,7 +580,12 @@
};
page
.
onLoadFinished
=
function
(
status
)
{
if
(
status
!==
"success"
)
{
casper
.
log
(
'Loading resource failed with status='
+
status
+
': '
+
casper
.
requestUrl
,
"info"
);
var
message
=
'Loading resource failed with status='
+
status
;
if
(
casper
.
currentHTTPStatus
)
{
message
+=
' (HTTP '
+
casper
.
currentHTTPStatus
+
')'
;
}
message
+=
': '
+
casper
.
requestUrl
;
casper
.
log
(
message
,
"warning"
);
}
if
(
casper
.
options
.
clientScripts
)
{
for
(
var
i
=
0
;
i
<
casper
.
options
.
clientScripts
.
length
;
i
++
)
{
...
...
Please
register
or
sign in
to post a comment