From 75231f53fee521799669470e3e0b8b2bf384dc61 Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Mon, 11 Mar 2024 14:53:10 +0100
Subject: [PATCH] test

---
 src/bioflowinsighterror.py | 4 ++--
 src/nextflow_file.py       | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/bioflowinsighterror.py b/src/bioflowinsighterror.py
index dd222bb..df181ec 100644
--- a/src/bioflowinsighterror.py
+++ b/src/bioflowinsighterror.py
@@ -4,9 +4,9 @@ class BioFlowInsightError(Exception):
         self.origin = origin
         #TODO -> add message at the end
         if(origin!=None):
-            super().__init__(f"[{num}] Error in the file '{self.origin.get_file_address()}': "+error)
+            super().__init__(f"{'\033[91m'}[{num}] Error in the file '{self.origin.get_file_address()}': "+error+'\033[0m')
         else:
-            super().__init__(f"[{num}] {error}")
+            super().__init__(f"{'\033[91m'}[{num}] {error}{'\033[0m'}")
 
 #To handle the different type of errors; I'm gonna add numbers to the errors 
 #Pair numbers if it's the users fault
diff --git a/src/nextflow_file.py b/src/nextflow_file.py
index 4f04aca..9a026ff 100644
--- a/src/nextflow_file.py
+++ b/src/nextflow_file.py
@@ -23,6 +23,7 @@ from .bioflowinsighterror import BioFlowInsightError
 class Nextflow_File(Nextflow_Building_Blocks):
     def __init__(self, address, duplicate = True, DSL="", author = None, name = None, origin=None, output_dir='./results', display_info = True):
         self.file = address 
+        print(self.get_file_address())
         if(self.get_file_address().find('/')!=-1):
             raise BioFlowInsightError(f"BioFlow-Insight cannot directly analyse a workflow from its directory. Please analyse the workflow from the parent directory instead.", num = -1)
         
-- 
GitLab