Update label migration failed (#1115)

pull/1113/head^2
yann300 4 years ago committed by GitHub
parent 2776a0a999
commit 8000f9dbaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      apps/remix-ide/src/migrateFileSystem.js

@ -1,5 +1,6 @@
import { Storage } from '@remix-project/remix-lib'
import { joinPath } from './lib/helper'
import yo from 'yo-yo'
const modalDialogCustom = require('./app/ui/modal-dialog-custom')
/*
Migrating the files to the BrowserFS storage instead or raw localstorage
@ -55,7 +56,7 @@ const populateWorkspace = async (workspace, json, browserProvider) => {
} else {
await browserProvider.set(joinPath(workspace, item), json[item].content, (err) => {
if (err && err.message) {
modalDialogCustom.alert(`There was an error migrating your files: ${err.message}`)
modalDialogCustom.alert(yo`<div>There was an error migrating your files:${err.message} <div>Please use the ‘Download all Files' action, clear the local storage and re-import your files manually or use the 'Restore files' action.</div></div>`)
}
})
}

Loading…
Cancel
Save