Comparing version 0.13.1 to 0.14.0
@@ -243,3 +243,5 @@ // Copyright 2013 SAP AG. | ||
function onerror(err) { | ||
self.emit('error', err); | ||
if (self.listeners('error').length) { | ||
self.emit('error', err); | ||
} | ||
} | ||
@@ -246,0 +248,0 @@ connection.on('error', onerror); |
@@ -9,3 +9,3 @@ { | ||
"description": "SAP HANA Database Client for Node", | ||
"version": "0.13.1", | ||
"version": "0.14.0", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
@@ -84,3 +84,3 @@ SAP HANA Database Client for Node | ||
The first step to establish a database connection is to create a client object. It is recommended to pass all required `connect` options like `host`, `port`, `user` and `password` to the `createClient` function. They will be used as defaults for following connect calls on the created client instance. In case of network connection errors like a connection timeout or a database restart you should always register an error event handler in order to be able to handle this kind of problems. | ||
The first step to establish a database connection is to create a client object. It is recommended to pass all required `connect` options like `host`, `port`, `user` and `password` to the `createClient` function. They will be used as defaults for following connect calls on the created client instance. In case of network connection errors like a connection timeout or a database restart you should register an error event handler in order to be able to handle this kind of problems. If there are no error event handlers, errors will not be emitted. | ||
@@ -87,0 +87,0 @@ ```js |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289041
8068