Skip to content

Instantly share code, notes, and snippets.

@lxbarth
Created December 13, 2011 21:53
Show Gist options
  • Save lxbarth/1474055 to your computer and use it in GitHub Desktop.
Save lxbarth/1474055 to your computer and use it in GitHub Desktop.
Better reporting in TileMill, first steps
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