Skip to content
Snippets Groups Projects
Commit 75231f53 authored by George Marchment's avatar George Marchment
Browse files

test

parent e758232b
No related branches found
Tags v0.0.26
No related merge requests found
Pipeline #13244 failed with stages
in 41 seconds
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment