From c26362924979df5dadc2e32236469a7eb17c6fbf Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Mon, 31 Jan 2022 13:58:44 +0000
Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s)

---
 src/Entity.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Entity.js b/src/Entity.js
index 1a14797..d43409f 100644
--- a/src/Entity.js
+++ b/src/Entity.js
@@ -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();
-- 
GitLab