Commit 03a76d5b authored by bunsenstraat's avatar bunsenstraat

fix err message

parent acf5859d
...@@ -226,7 +226,7 @@ class DGitProvider extends Plugin { ...@@ -226,7 +226,7 @@ class DGitProvider extends Plugin {
async clone (input) { async clone (input) {
const permission = await this.askUserPermission('clone', 'Import multiple files into your workspaces.') const permission = await this.askUserPermission('clone', 'Import multiple files into your workspaces.')
if (!permission) return false if (!permission) return false
if (this.calculateLocalStorage() > 10000) throw new Error('Local browser storage is full.') if (this.calculateLocalStorage() > 10000) throw new Error('The local storage of the browser is full.')
await this.call('filePanel', 'createWorkspace', `workspace_${Date.now()}`, false) await this.call('filePanel', 'createWorkspace', `workspace_${Date.now()}`, false)
const cmd = { const cmd = {
...@@ -457,7 +457,7 @@ class DGitProvider extends Plugin { ...@@ -457,7 +457,7 @@ class DGitProvider extends Plugin {
async import (cmd) { async import (cmd) {
const permission = await this.askUserPermission('import', 'Import multiple files into your workspaces.') const permission = await this.askUserPermission('import', 'Import multiple files into your workspaces.')
if (!permission) return false if (!permission) return false
if (this.calculateLocalStorage() > 10000) throw new Error('Local browser storage is full.') if (this.calculateLocalStorage() > 10000) throw new Error('The local storage of the browser is full.')
const cid = cmd.cid const cid = cmd.cid
await this.call('filePanel', 'createWorkspace', `workspace_${Date.now()}`, false) await this.call('filePanel', 'createWorkspace', `workspace_${Date.now()}`, false)
const workspace = await this.call('filePanel', 'getCurrentWorkspace') const workspace = await this.call('filePanel', 'getCurrentWorkspace')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment