Skip to content

Commit b6425eb

Browse files
committed
fix: return if organization.error
1 parent e46947c commit b6425eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CoCreateFileSystem {
2727

2828
async send(req, res, crud, organization, valideUrl) {
2929
try {
30-
if (!organization) {
30+
if (!organization || organization.error) {
3131
let hostNotFound = await getDefaultFile('/hostNotFound.html')
3232
return sendResponse(hostNotFound.object[0].src, 404, { 'Content-Type': 'text/html' })
3333
}

0 commit comments

Comments
 (0)