Revision 54825
Added by Konstantina Galouni about 5 years ago
dataset.component.ts | ||
---|---|---|
152 | 152 |
this.showLoading = false; |
153 | 153 |
}, |
154 | 154 |
err => { |
155 |
console.log(err) |
|
155 |
//console.log(err) |
|
156 |
this.handleError("Error getting research data for id: "+this.datasetId, err); |
|
156 | 157 |
|
157 | 158 |
this.errorMessage = 'No research data found'; |
158 | 159 |
this.showLoading = false; |
... | ... | |
195 | 196 |
public getKeys( map) { |
196 | 197 |
return Array.from(map.keys()); |
197 | 198 |
} |
199 |
|
|
200 |
private handleError(message: string, error) { |
|
201 |
console.error("Research Data Landing Page: "+message, error); |
|
202 |
} |
|
198 | 203 |
} |
Also available in: Unified diff
[trunk]: Library:
1. Fix error logs in Landing, Deposit and Search Pages.
2. errorMessages.component: Add method to check status of response and return error code according to 'ErrorCodes' class.