Commit 68d05b1d authored by Jeff Thiessen's avatar Jeff Thiessen

improve error messages

parent 6876861b
Pipeline #7225 passed with stage
in 8 minutes and 7 seconds
......@@ -47,7 +47,8 @@ def find_runs_in_directory(directory):
# Checks if we can access to the given directory, return empty and log a warning if we cannot.
if not os.access(run_dir, os.W_OK):
logging.warning("Could not access directory while looking for samples {}".format(run_dir))
logging.warning("The following directory is not writeable, "
"can not upload any samples from this directory {}".format(run_dir))
return []
dir_list = next(os.walk(run_dir))[1] # Gets the list of directories in the directory
......@@ -73,7 +74,8 @@ def find_runs_in_directory(directory):
# Checks if we can write to the directory, return false and log a warning if we cannot.
if not os.access(sample_dir, os.W_OK):
logging.warning("Could not access directory while looking for samples {}".format(sample_dir))
logging.warning("The following directory is not writeable, "
"can not upload any samples from this directory {}".format(sample_dir))
return False
file_list = next(os.walk(sample_dir))[2] # Gets the list of files in the directory
......
......@@ -83,7 +83,7 @@ class InvalidSampleSheetsPanel(wx.Panel):
if isinstance(error, SampleError):
sheet_errors_type = self._errors_tree.AppendItem(sheet_errors_root, "Error with Sample Data")
elif isinstance(error, SequenceFileError):
sheet_errors_type = self._errors_tree.AppendItem(sheet_errors_root, "Missing FASTQ files")
sheet_errors_type = self._errors_tree.AppendItem(sheet_errors_root, "Missing or Duplicate FASTQ files")
elif isinstance(error, SampleSheetError):
sheet_errors_type = self._errors_tree.AppendItem(sheet_errors_root, "Missing Important Data")
......
Markdown is supported
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