Skip to content

Commit

Permalink
Improve error reporting on data fetch failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tertek committed Mar 6, 2024
1 parent 7486dd0 commit 8b9de66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/appTracker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/appTracker.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/tracker/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

</div>
<div v-else-if="isError" class="tracking-error">
{{ errorMessage }}
<b-col><b-alert show variant="danger"><b>Device Tracker Error</b><br>There was a problem during data fetch from database. Please reload the page or notify and administrator.<br><br>Error Detail:<br><i>{{ errorMessage }}</i></b-alert></b-col>
</div>
</template>
<script>
Expand Down Expand Up @@ -162,7 +162,7 @@
})
.catch(e => {
this.isError = true
this.errorMessage = e.Message
this.errorMessage = e.message
console.log(e)
})
.finally( () => {
Expand Down Expand Up @@ -231,7 +231,7 @@
max-width: none;
width:auto;
}
.tracking-wrapper {
.tracking-wrapper, .tracking-error {
margin-top:5px;
margin-bottom: 5px;
position: relative;
Expand Down

0 comments on commit 8b9de66

Please sign in to comment.