Skip to content

Commit

Permalink
chore: #171 - Improve message when attempting to access the file syst…
Browse files Browse the repository at this point in the history
…em in the browser.
  • Loading branch information
dsherret committed May 13, 2021
1 parent 46ab2c0 commit 3c6a14e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/runtimes/BrowserRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class BrowserRuntimePath implements RuntimePath {
}

class BrowserRuntimeFileSystem implements RuntimeFileSystem {
private _errorMessage = "Not supported for the browser.";
private _errorMessage =
"Access to the file system is not supported in the browser. Please use an in-memory file system (specify `useInMemoryFileSystem: true` when creating the project).";

delete(_path: string) {
return Promise.reject(new Error(this._errorMessage));
Expand Down

0 comments on commit 3c6a14e

Please sign in to comment.