remove unnecessary console logging
This commit is contained in:
parent
4f72f0abb7
commit
b18e70c393
@ -123,7 +123,6 @@ export async function guardOperationException<T>(
|
|||||||
try {
|
try {
|
||||||
return await op();
|
return await op();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("guard: caught exception");
|
|
||||||
if (e instanceof OperationFailedAndReportedError) {
|
if (e instanceof OperationFailedAndReportedError) {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
@ -132,7 +131,6 @@ export async function guardOperationException<T>(
|
|||||||
throw new OperationFailedAndReportedError(e.operationError);
|
throw new OperationFailedAndReportedError(e.operationError);
|
||||||
}
|
}
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
console.log("guard: caught Error");
|
|
||||||
const opErr = {
|
const opErr = {
|
||||||
type: "exception",
|
type: "exception",
|
||||||
message: e.message,
|
message: e.message,
|
||||||
@ -141,7 +139,6 @@ export async function guardOperationException<T>(
|
|||||||
await onOpError(opErr);
|
await onOpError(opErr);
|
||||||
throw new OperationFailedAndReportedError(opErr);
|
throw new OperationFailedAndReportedError(opErr);
|
||||||
}
|
}
|
||||||
console.log("guard: caught something else");
|
|
||||||
const opErr = {
|
const opErr = {
|
||||||
type: "exception",
|
type: "exception",
|
||||||
message: "unexpected exception thrown",
|
message: "unexpected exception thrown",
|
||||||
|
Loading…
Reference in New Issue
Block a user