Skip to content
Snippets Groups Projects
Commit c2636292 authored by Timm Fitschen's avatar Timm Fitschen Committed by Florian Spreckelsen
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent f09af6f5
No related branches found
No related tags found
1 merge request!2ENH: Add functions for File entities
......@@ -55,7 +55,7 @@ export class Entity {
getFilePath() {
if (!this.isFile()) {
throw `Only FILE entities can have a file path.`;
throw new Error(`Only FILE entities can have a file path.`);
}
const fileDescriptor = this.wrappedEntity.getFileDescriptor();
return fileDescriptor.getPath();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment