Skip to content

Commit ec41f4f

Browse files
committed
better routinator failure reporting
1 parent 8542452 commit ec41f4f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/views/Home.vue

+6-5
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,10 @@
225225
</div>
226226
<h4>DATA DELIVERY</h4>
227227
<h5>RPKI</h5>
228-
<a :href="`https://${routinatorApiHost}/api/v1/status`">{{
229-
this.status.version || "NOT AVAILABLE"
228+
<a :href="`https://${routinatorApiHost}/api/v1/status`" v-if="this.status.version">{{
229+
this.status.version
230230
}}</a>
231+
<span v-else>Not available. Routinator may not be running!</span>
231232
<h5>BGP + RIR Allocations</h5>
232233
<a
233234
:href="`https://${rotoApiHost}/api/v1/`"
@@ -259,7 +260,7 @@
259260
Routinator is initializing, please wait.
260261
</div>
261262
<div v-else-if="status && status.error" style="color: red;">
262-
NO DATA
263+
Routinator API returned a status error. Check your installation.
263264
</div>
264265
<div v-if="rotoStatus">
265266
BGP
@@ -657,8 +658,8 @@ export default {
657658
window.setTimeout(this.loadRoutinatorStatus, 10000);
658659
} else {
659660
this.status.error =
660-
(err.response && err.response.data) ||
661-
"Routinator has unknown problems. Reloading this page may help.";
661+
(err.response && err.response.data) &&
662+
"Routinator API returned an error. Check your Routinator installation.";
662663
this.status.waiting = false;
663664
}
664665
}

0 commit comments

Comments
 (0)