Skip to content

Commit

Permalink
Show server returned errors in the web interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg committed Nov 17, 2024
1 parent 542541c commit bab4659
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<input class="waves-effect" v-on:keyup.enter="testProxy" v-model="proxy" placeholder="ss://abeatifulkey" type="text"/>
</span>
<a v-on:click="testProxy" class="btn-large red">
<i class="material-icons">vpn_key</i>
<i class="material-icons">refresh</i>
</a>
<h3 v-if="proxyStatus !== ''">Status: {{ proxyStatus }}</h3>
<h3 v-if="proxyLocation !== ''">Location: {{ proxyLocation }}</h3>
Expand Down Expand Up @@ -65,8 +65,7 @@ <h3 v-if="proxyLocation !== ''">Address: {{ proxyAddress }}</h3>
this.proxyLocation = response.data.YourFuckingLocation;
}
}).catch(error => {
this.proxyStatus = 'Server Error';
console.log(error);
this.proxyStatus = 'Error '+error.response.data;
});
}
}
Expand Down

0 comments on commit bab4659

Please sign in to comment.