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

Commit 8a2298d

Browse files
committed
とりあえず404かどうかだけ見る
1 parent 50ee02f commit 8a2298d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/Registration.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ export default {
5050
this.registration_token = this.$route.params.token;
5151
await this.verifyRegistrationToken(this.registration_token);
5252
if (this.tokenVerificationError) {
53-
this.createError({ number: 400, message: 'Invalid token' });
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+
}
5458
}
5559
},
5660
methods: {

0 commit comments

Comments
 (0)