Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function receiveFromNextSession(serviceBusClient: ServiceBusClient): Promi
) {
console.log(`INFO: no available sessions, sleeping for ${delayOnErrorMs}`);
} else {
await processError(err, undefined);
await processError(<Error>err, undefined);
}

await delay(delayOnErrorMs);
Expand Down Expand Up @@ -128,7 +128,7 @@ async function receiveFromNextSession(serviceBusClient: ServiceBusClient): Promi
await sessionFullyRead;
await sessionClosed("idle_timeout", sessionReceiver.sessionId);
} catch (err) {
await processError(err, sessionReceiver.sessionId);
await processError(<Error>err, sessionReceiver.sessionId);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err as Error is preferable to using the <Error>err syntax.

await sessionClosed("error", sessionReceiver.sessionId);
} finally {
await sessionReceiver.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"rootDir": "src"
},
"include": [
"src/**.ts"
"src/**/*.ts"
]
}