Permalink
Browse files

[doc] Update to make documentation and examples with hook.io@0.6.x co…

…mpliant event API
  • Loading branch information...
1 parent 0361439 commit 89fd7e14619ee4bb3054e80f1da195e6c50e4ad3 @indexzero indexzero committed Aug 3, 2011
Showing with 8 additions and 8 deletions.
  1. +4 −4 README.md
  2. +4 −4 examples/jailer.js
View
@@ -45,10 +45,10 @@ var script = 'server.js',
scriptPort = 31337;
carapace.listen( hookOpts,function () {
- carapace.on('carapace::plugin::error', function (plugin, ex) {
- console.log('Error loading plugin: ' + plugin);
- console.log(ex.message);
- console.dir(ex.stack.split('\n'))
+ carapace.on('carapace::plugin::error', function (info) {
+ console.log('Error loading plugin: ' + info.plugin);
+ console.log(info.error.message);
+ console.dir(info.error.stack.split('\n'))
});
carapace.use([
View
@@ -8,10 +8,10 @@ var script = 'server.js',
scriptPort = 31337;
carapace.listen( hookOpts,function () {
- carapace.on('carapace::plugin::error', function (plugin, ex) {
- console.log('Error loading plugin: ' + plugin);
- console.log(ex.message);
- console.dir(ex.stack.split('\n'))
+ carapace.on('carapace::plugin::error', function (info) {
+ console.log('Error loading plugin: ' + info.plugin);
+ console.log(info.error.message);
+ console.dir(info.error.stack.split('\n'))
});
carapace.use([

0 comments on commit 89fd7e1

Please sign in to comment.