Add explicit timeout error message from GitHub API

This commit is contained in:
lowlighter
2021-04-14 13:10:47 +02:00
parent 9899c90520
commit 11a7bed722
2 changed files with 13 additions and 1 deletions

View File

@@ -66,7 +66,7 @@
this.metrics = (await axios.get(`/about/query/${this.user}`)).data
}
catch (error) {
this.error = error
this.error = {code:error.response.status, message:error.response.data}
}
finally {
this.pending = false