Skip to content

Commit 9949817

Browse files
committed
Add hint to use Plain HTML environment when zip environment encounters request error
1 parent 28374f3 commit 9949817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packager/packager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ cd "$(dirname "$0")"
10851085
};
10861086
xhr.onerror = () => {
10871087
if (location.protocol === 'file:') {
1088-
reject(new Error('Zip environment must be used from a website, not from a file URL.'));
1088+
reject(new Error('Zip environment must be used on a website, not on a local file. To fix this error, use the "Plain HTML" environment instead.'));
10891089
} else {
10901090
reject(new Error('Request to load project data failed.'));
10911091
}

0 commit comments

Comments
 (0)