remove unnecessary console logging

This commit is contained in:
Florian Dold 2020-07-20 16:22:29 +05:30
parent 4f72f0abb7
commit b18e70c393
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -123,7 +123,6 @@ export async function guardOperationException<T>(
try {
return await op();
} catch (e) {
console.log("guard: caught exception");
if (e instanceof OperationFailedAndReportedError) {
throw e;
}
@ -132,7 +131,6 @@ export async function guardOperationException<T>(
throw new OperationFailedAndReportedError(e.operationError);
}
if (e instanceof Error) {
console.log("guard: caught Error");
const opErr = {
type: "exception",
message: e.message,
@ -141,7 +139,6 @@ export async function guardOperationException<T>(
await onOpError(opErr);
throw new OperationFailedAndReportedError(opErr);
}
console.log("guard: caught something else");
const opErr = {
type: "exception",
message: "unexpected exception thrown",