From 7229661c8efd2b0ad59f3070a719e382deb8b301 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 3 Dec 2023 14:00:52 +0100 Subject: [PATCH] Replace all instances of "ex" with "err" --- svr.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/svr.js b/svr.js index ee188ca..4799cd1 100644 --- a/svr.js +++ b/svr.js @@ -2042,7 +2042,7 @@ if (!cluster.isPrimary) { } else { try { process.send("\x12ERRLIST" + attmtsRedir + err.code); - } catch (ex) { + } catch (err) { // Probably main process exited } } @@ -2052,7 +2052,7 @@ if (!cluster.isPrimary) { } else { try { if (cluster.isPrimary !== undefined) process.send("\x12ERRCRASH" + err.code); - } catch (ex) { + } catch (err) { // Probably main process exited } setTimeout(function () { @@ -4321,8 +4321,8 @@ if (!cluster.isPrimary) { if (err || !stats.isDirectory()) { try { callback(); - } catch (ex) { - callServerError(500, undefined, ex); + } catch (err) { + callServerError(500, undefined, err); } } else { var destinationURL = uobject; @@ -4592,7 +4592,7 @@ if (!cluster.isPrimary) { } else { try { process.send("\x12ERRLIST" + attmts + err.code); - } catch (ex) { + } catch (err) { // Probably main process exited } } @@ -4602,7 +4602,7 @@ if (!cluster.isPrimary) { } else { try { if (cluster.isPrimary !== undefined) process.send("\x12ERRCRASH" + err.code); - } catch (ex) { + } catch (err) { // Probably main process exited } setTimeout(function () {