Skip to content

Commit

Permalink
Resolved : Deadletter related properties error. (Azure#141)
Browse files Browse the repository at this point in the history
* Deadletter related properties error.
  • Loading branch information
ShivangiReja authored and AlexGhiondea committed Jan 4, 2019
1 parent 3b4fbea commit fac547e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/serviceBusMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -949,14 +949,13 @@ export class ServiceBusMessage implements ReceivedMessage {
* @returns Promise<void>
*/
async deadLetter(options?: DeadLetterOptions): Promise<void> {
let error: AmqpError = {
condition: "",
description: ""
const error: AmqpError = {
condition: Constants.deadLetterName
};
if (options) {
error = {
condition: options.deadletterReason,
description: options.deadLetterErrorDescription
error.info = {
DeadLetterReason: options.deadletterReason,
DeadLetterErrorDescription: options.deadLetterErrorDescription
};
}
log.message(
Expand Down

0 comments on commit fac547e

Please sign in to comment.