diff --git a/src/app/applications/datatarget/datatarget-test-connection/datatarget-test-connection.component.ts b/src/app/applications/datatarget/datatarget-test-connection/datatarget-test-connection.component.ts index 77953158..2fe7e7eb 100644 --- a/src/app/applications/datatarget/datatarget-test-connection/datatarget-test-connection.component.ts +++ b/src/app/applications/datatarget/datatarget-test-connection/datatarget-test-connection.component.ts @@ -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 = ""; } ); }