Skip to content

Commit

Permalink
Better error handling when decoding fails
Browse files Browse the repository at this point in the history
  • Loading branch information
fcv-iteratorIt committed Oct 1, 2024
1 parent 97c383b commit 3aade1a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ export class DatatargetTestConnectionComponent implements OnInit, OnDestroy {
response => {
this.testResponse = response?.result ? JSON.stringify(response.result, null, 2) : "";
this.decodedData = response?.decodedPayload ? JSON.stringify(response.decodedPayload, null, 2) : "";
this.loading = false;
},
error => {
console.log(error);
},
() => {
this.loading = false;
this.decodedData = JSON.stringify(error.error, null, 2);
this.testResponse = "";
}
);
}
Expand Down

0 comments on commit 3aade1a

Please sign in to comment.