Skip to content

Commit c4028c2

Browse files
committed
Prepare Upgrade to libzmq 4.2.0
1 parent 6de94b7 commit c4028c2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

binding.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#include <node_version.h>
2727
#include <node_buffer.h>
2828
#include <zmq.h>
29+
#if (ZMQ_VERSION < 40200)
2930
#include <zmq_utils.h>
31+
#endif
3032
#include <assert.h>
3133
#include <stddef.h>
3234
#include <stdio.h>

test/socket.router.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ describe('socket.router', function(){
2121
var errMsgs = require('os').platform() === 'win32' ? ['Unknown error'] : [];
2222
errMsgs.push('No route to host');
2323
errMsgs.push('Resource temporarily unavailable');
24+
errMsgs.push('Host unreachable');
2425

2526
function assertRouteError(err) {
2627
if (errMsgs.indexOf(err.message) === -1) {
27-
throw new Error('Bad error');
28+
throw new Error(err.message);
2829
}
2930
}
3031

0 commit comments

Comments
 (0)