ssh-client-wrapper 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/sshExec.js +3 -0
  2. package/package.json +1 -1
package/lib/sshExec.js CHANGED
@@ -260,10 +260,13 @@ async function retryWrapper (func, hostInfo, argMaxRetry, argDuration) {
260
260
  return rt;
261
261
  } catch (e) {
262
262
  if (!e.retryable) {
263
+ debug("unretryable error occurred!");
263
264
  throw e;
264
265
  }
265
266
  if (retryCount > maxRetry) {
266
267
  debug(`max retry count exceeded: ${retryCount}`);
268
+ e.retryCount = retryCount;
269
+ e.maxRetryCount = maxRetry;
267
270
  throw e;
268
271
  }
269
272
  retryCount++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssh-client-wrapper",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "wrapper library for open ssh client and rsync",
5
5
  "keywords": [
6
6
  "ssh",