Skip to content
This repository has been archived by the owner on May 10, 2020. It is now read-only.

Commit

Permalink
Slight change to screenshot creation error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano committed Nov 22, 2014
1 parent c756ed6 commit ada90c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/baker.js
Expand Up @@ -47,7 +47,7 @@ Baker.prototype.screenshot = function (tags, cb) {

webshot(url, file, { shotSize: { width: 'all', height: 'all' } }, function (err) {
if (err) {
console.error('%s - %s %s', 'error'.red, err.message, file);
console.error('%s - %s while creating %s', 'error'.red, err.message, file);
} else {
console.log('%s - Created %s', 'success'.green, file);
}
Expand Down
2 changes: 1 addition & 1 deletion test/baker.js
Expand Up @@ -71,7 +71,7 @@ buster.testCase('baker - screenshot', {
baker.screenshot(['tag1'], done);
},
'should log error message when an error occurred': function (done) {
this.mockConsole.expects('error').once().withExactArgs('%s - %s %s', 'error'.red, 'some error', 'tag1-somedesc.png');
this.mockConsole.expects('error').once().withExactArgs('%s - %s while creating %s', 'error'.red, 'some error', 'tag1-somedesc.png');
var mockEggtart = {
posts: function () {
return {
Expand Down

0 comments on commit ada90c3

Please sign in to comment.