Permalink
Browse files

* Bugfix: Ftp methods were note prototype methods

* Uncaught exception now prints stacktrace instead of just the error message
  • Loading branch information...
1 parent 4911fc9 commit c78a7fc6dd4e376576a3b21094e47e68024c3c30 @stelcheck stelcheck committed Jan 22, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 bin/statusdashboard
  2. +2 −2 lib/sources/ftp.js
View
@@ -12,7 +12,7 @@ process.on('exit', function () {
});
process.on('uncaughtException', function(err) {
- util.log(err);
+ util.log(err.stack.replace(/^ /gm, ' '));
});
var dashboard = new server.dashboard(settings);
View
@@ -9,14 +9,14 @@ var Ftp = function (service, stream) {
this.stream = stream;
};
-Ftp.error = function(status, message) {
+Ftp.prototype.error = function(status, message) {
this.service.status = "down";
this.service.statusCode = status;
this.service.message = message;
callback(this.service.status, this.service);
};
-Ftp.command = function(command, callback) {
+Ftp.prototype.command = function(command, callback) {
var self = this;
this.stream.write(command + '\r\n');

0 comments on commit c78a7fc

Please sign in to comment.