diff --git a/src/bioflowinsighterror.py b/src/bioflowinsighterror.py index dd222bb911354243c204a4ce080bf325f04eb2ee..df181ec88de651b4474f03d4de06d75cfc22fcd9 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 4f04acadac2cccad6eb364eef4e5221d3acf4034..9a026ffa4ec72f20b2ce20a30ea0dc795c33a667 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)