Skip to content

Commit 91a9847

Browse files
Merge pull request #26 from jae1911/jae-non-public-world
Add specific error message on 403
2 parents 6bb50e2 + 28aac4c commit 91a9847

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routes/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ async function createResoniteApiError(res, type) {
6262
if (res.status === 404) {
6363
return createError(res.status, `We couldn't find this ${type}.\n
6464
Check your link is valid, and that the session is still open and publicly viewable.`);
65+
} else if (res.status === 403) {
66+
return createError(res.status, "This world is not published, therefore not publicly viewable.");
6567
}
6668

6769
var text = await res.text();

0 commit comments

Comments
 (0)