Created
December 13, 2011 21:53
-
-
Save lxbarth/1474055 to your computer and use it in GitHub Desktop.
Better reporting in TileMill, first steps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/commands/export.bones b/commands/export.bones | |
index 2c7dd98..a8d3ac8 100644 | |
--- a/commands/export.bones | |
+++ b/commands/export.bones | |
@@ -158,7 +158,6 @@ command.prototype.error = function(err) { | |
error: err.toString(), | |
updated: +new Date() | |
}); | |
- console.error(err.toString()); | |
}; | |
command.prototype.remaining = function(progress, started) { | |
@@ -170,6 +169,10 @@ command.prototype.remaining = function(progress, started) { | |
command.prototype.put = function(data, callback) { | |
callback = callback || function() {}; | |
+ data.status == 'error' ? | |
+ console.log(JSON.stringify(data)) : | |
+ console.error(JSON.stringify(data)); | |
+ | |
if (!this.opts.url) return callback(); | |
request.put({ | |
uri: this.opts.url, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment