Commit cafca4fc authored by Grandschtroumpf's avatar Grandschtroumpf

add the expection again

parent e98e6845
......@@ -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) {
......
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