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
478dcd23
...
478dcd2356895f1dbeecfadabf4812bf9003415e
authored
2012-03-25 19:22:11 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added log message when a resource has been downloaded
1 parent
d17faf00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
modules/casper.js
modules/casper.js
View file @
478dcd2
...
...
@@ -345,6 +345,7 @@ Casper.prototype.download = function download(url, targetPath) {
try
{
fs
.
write
(
targetPath
,
cu
.
decode
(
this
.
base64encode
(
url
)),
'w'
);
this
.
emit
(
'downloaded.file'
,
targetPath
);
this
.
log
(
f
(
"Downloaded and saved resource in %s"
,
targetPath
));
}
catch
(
e
)
{
this
.
log
(
f
(
"Error while downloading %s to %s: %s"
,
url
,
targetPath
,
e
),
"error"
);
}
...
...
Please
register
or
sign in
to post a comment