Skip to content

Commit cc2e356

Browse files
committed
Fix showing error stack trace for old node versions
1 parent 3481095 commit cc2e356

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugin-api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export default class PluginAPI {
262262
// Only show error when not from nodemiral
263263
// since nodemiral would have already shown the error
264264
if (!(e.nodemiralHistory instanceof Array)) {
265-
console.error(e);
265+
console.error(e.stack || e);
266266
}
267267

268268
if (e.solution) {
@@ -398,8 +398,8 @@ export default class PluginAPI {
398398
opts.ssh = info.opts;
399399
}
400400

401-
opts.ssh.keepaliveInterval = 1000 * 30;
402-
opts.ssh.keepaliveCountMax = 4;
401+
opts.ssh.keepaliveInterval = 1000 * 28;
402+
opts.ssh.keepaliveCountMax = 12;
403403

404404
if (info.pem) {
405405
try {

0 commit comments

Comments
 (0)