forked from svrjs/svrjs
Replace all instances of "ex" with "err"
This commit is contained in:
parent
ebe310eca6
commit
7229661c8e
1 changed files with 6 additions and 6 deletions
12
svr.js
12
svr.js
|
@ -2042,7 +2042,7 @@ if (!cluster.isPrimary) {
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
process.send("\x12ERRLIST" + attmtsRedir + err.code);
|
process.send("\x12ERRLIST" + attmtsRedir + err.code);
|
||||||
} catch (ex) {
|
} catch (err) {
|
||||||
// Probably main process exited
|
// Probably main process exited
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2052,7 +2052,7 @@ if (!cluster.isPrimary) {
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
if (cluster.isPrimary !== undefined) process.send("\x12ERRCRASH" + err.code);
|
if (cluster.isPrimary !== undefined) process.send("\x12ERRCRASH" + err.code);
|
||||||
} catch (ex) {
|
} catch (err) {
|
||||||
// Probably main process exited
|
// Probably main process exited
|
||||||
}
|
}
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
@ -4321,8 +4321,8 @@ if (!cluster.isPrimary) {
|
||||||
if (err || !stats.isDirectory()) {
|
if (err || !stats.isDirectory()) {
|
||||||
try {
|
try {
|
||||||
callback();
|
callback();
|
||||||
} catch (ex) {
|
} catch (err) {
|
||||||
callServerError(500, undefined, ex);
|
callServerError(500, undefined, err);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var destinationURL = uobject;
|
var destinationURL = uobject;
|
||||||
|
@ -4592,7 +4592,7 @@ if (!cluster.isPrimary) {
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
process.send("\x12ERRLIST" + attmts + err.code);
|
process.send("\x12ERRLIST" + attmts + err.code);
|
||||||
} catch (ex) {
|
} catch (err) {
|
||||||
// Probably main process exited
|
// Probably main process exited
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4602,7 +4602,7 @@ if (!cluster.isPrimary) {
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
if (cluster.isPrimary !== undefined) process.send("\x12ERRCRASH" + err.code);
|
if (cluster.isPrimary !== undefined) process.send("\x12ERRCRASH" + err.code);
|
||||||
} catch (ex) {
|
} catch (err) {
|
||||||
// Probably main process exited
|
// Probably main process exited
|
||||||
}
|
}
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
Reference in a new issue