Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Commit 4a90814

Browse files
committed
バックエンドから帰ってきたステータスを垂れ流す
1 parent 8a2298d commit 4a90814

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/views/Registration.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ export default {
5050
this.registration_token = this.$route.params.token;
5151
await this.verifyRegistrationToken(this.registration_token);
5252
if (this.tokenVerificationError) {
53-
if (this.tokenVerificationError.response.status === 404) {
54-
this.createError({ number: 400, message: 'Invalid token' });
55-
} else {
56-
this.createError({ number: 500, message: 'Something happend' });
57-
}
53+
this.createError({
54+
number: this.tokenVerificationError.response.status,
55+
message: this.tokenVerificationError.response.data.message,
56+
});
5857
}
5958
},
6059
methods: {

0 commit comments

Comments
 (0)