Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show error on kubernetes pages and kubernetes endpoint page. #96

Merged
merged 10 commits into from
Nov 20, 2018
Prev Previous commit
Next Next commit
Ensure all status codes are strings
  • Loading branch information
richard-cox committed Nov 16, 2018
commit fb0ebf13fa37045aeff51e213ab473a39535856f
2 changes: 1 addition & 1 deletion src/frontend/app/store/effects/cloud-foundry.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class CloudFoundryEffects {
new WrapperRequestActionFailed(error.message, apiAction, actionType, {
endpointIds: [action.cfGuid],
url: error.url || url,
eventCode: error.status || '500',
eventCode: error.status ? error.status + '' : '500',
message: 'Cloud Foundry Info request error',
error
})
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/app/store/effects/metrics.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class MetricsEffect {
'fetch', {
endpointIds: [action.endpointGuid],
url: errObservable.url || fullUrl,
eventCode: errObservable.status || '500',
eventCode: errObservable.status ? errObservable.status + '' : '500',
message: 'Metric request error',
}
)
Expand Down