comparison match_library.py @ 6:eabfda6213ae

better error message
author pieter.lukasse@wur.nl
date Tue, 21 Jan 2014 15:50:49 +0100
parents b1d339e0147e
children e67149fbff20
comparison
equal deleted inserted replaced
5:b1d339e0147e 6:eabfda6213ae
109 109
110 ''' 110 '''
111 files = glob.glob(dir_name + "/*.txt") 111 files = glob.glob(dir_name + "/*.txt")
112 if len(files) == 0: 112 if len(files) == 0:
113 # Configuration error: no library files found in <galaxy-home-dir>/" + dir_name : 113 # Configuration error: no library files found in <galaxy-home-dir>/" + dir_name :
114 galaxy_output = [("Configuration error: no library files found", "", False)] 114 galaxy_output = [("Configuration error: expected file not found in <galaxy-home-dir>/" + dir_name, "", False)]
115 else: 115 else:
116 galaxy_output = [(str(get_file_name_no_ext(file_name)), str(os.path.abspath(file_name)), False) for file_name in files] 116 galaxy_output = [(str(get_file_name_no_ext(file_name)), str(os.path.abspath(file_name)), False) for file_name in files]
117 return(galaxy_output) 117 return(galaxy_output)
118 118
119 def get_file_name_no_ext(full_name): 119 def get_file_name_no_ext(full_name):