Commit cee77d8d authored by Celine Noirot's avatar Celine Noirot
Browse files

Debbug exit error

parent 1524a6a8
......@@ -39,9 +39,11 @@ class AddAnalysis (NG6Workflow):
sys.exit("error: %s file does not exists\n" % (file))
# Check if user provided a project or a run
if self.project and self.runobj:
sys.exit("An analysis should be added to a run OR a project not both of them!\n")
sys.stderr.write("An analysis should be added to a run OR a project not both of them!\n")
sys.exit()
elif self.project is None and self.runobj is None :
sys.exit("One of run_id or project_id parameter is required!\n")
sys.stderr.write("One of run_id or project_id parameter is required!\n")
sys.exit()
addto = "run"
if self.project: addto = "project"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment