[FIX] #2 Issue: Display status-code and status-message
This commit is contained in:
parent
a72f5a7158
commit
ca991a705b
4
dist/main.js
vendored
4
dist/main.js
vendored
File diff suppressed because one or more lines are too long
@ -214,7 +214,22 @@ export default {
|
||||
this.tableDataHistoryObject.push(xtrData);
|
||||
})
|
||||
.catch(e => {
|
||||
this.executionTime = 'Check request'
|
||||
if(e.response !== undefined) {
|
||||
// JSON responses are automatically parsed.
|
||||
this.tableData = {0 : {
|
||||
0: "Status-Code: HTTP/" + e.response.status,
|
||||
1: "Message: " + e.response.statusText,
|
||||
2: "",
|
||||
3: "",
|
||||
4: ""
|
||||
}};
|
||||
this.setLastExecutionTime();
|
||||
this.tableDataHistory.push(this.tableData);
|
||||
this.tick = this.tableDataHistory.length -1;
|
||||
var xtrData = new XtrData();
|
||||
xtrData.initObjectByElements(this.selectedServerData, this.executionTime , this.tableData ,this.target);
|
||||
this.tableDataHistoryObject.push(xtrData);
|
||||
}
|
||||
}).finally(ee => {
|
||||
var position = this.jobList.indexOf(jobId);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user