Skip to content

Commit 7e23033

Browse files
committed
fix #4100 -- incorrect error message when directory is not readable and project is not upgraded.
1 parent 4314330 commit 7e23033

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/packages/frontend/project/explorer/fetch-directory-errors.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ export function FetchDirectoryErrors({
3333
);
3434
case "not_a_dir":
3535
return (
36-
<ShowError
37-
message="Not a folder"
38-
error={`${path} is not a folder.`}
39-
/>
36+
<ShowError message="Not a folder" error={`${path} is not a folder.`} />
4037
);
4138
case "not_running":
4239
// This shouldn't happen, but due to maybe a slight race condition in the backend it can.
@@ -51,9 +48,12 @@ export function FetchDirectoryErrors({
5148
default:
5249
if (
5350
error === "no_instance" ||
54-
(is_commercial && quotas && !quotas.member_host)
51+
(is_commercial &&
52+
quotas &&
53+
!quotas.member_host &&
54+
!`${error}`.includes("EACCES"))
5555
) {
56-
// the second part of the or is to blame it on the free servers...
56+
// the second part of the or is to blame it on the free servers, unless EACCESS = read permission error -- see https://github.com/sagemathinc/cocalc/issues/4100
5757
return (
5858
<ShowError
5959
message="Project unavailable"

0 commit comments

Comments
 (0)