add the expection again

pull/1/head
Grandschtroumpf 6 years ago
parent e98e684572
commit cafca4fcbd
  1. 6
      src/app/files/fileManager.js

@ -113,8 +113,10 @@ class FileManager extends FileSystemApi {
return path ? path[1] : null
}
async getCurrentFile () {
return this.currentFile()
getCurrentFile () {
const path = this.currentFile()
if (!path) throw new Error('No file selected')
return path
}
getFile (path) {

Loading…
Cancel
Save