2946 Change the error given when a user tries to add incomplete content to a geographic feature (shapefile) from
@@ -400,8 +400,11 @@ def extract_metadata_and_files(resource, res_file, file_type=True):
temp_dir = os.path.dirname(shape_files[0])
if not _check_if_shape_files(shape_files):
if res_file.extension.lower() == '.shp':
- err_msg = "One or more dependent shape files are missing at location: " \
- "{folder_path} or one or more files are not of shape file type."
+ err_msg = "Shapefile component file at location: " \
+ "{folder_path} are incomplete or incorrect. The .shp, .shx, and .dbf shapefile " \
+ "component files are required. Other shapefile component files " \
+ "(.cpg, .prj, .sbn, .sbx, .xml, .fbn, .fbx, .ain, .aih, .atx, .ixs, .mxs) " \
+ "should also be added where available."
err_msg = err_msg.format(folder_path=res_file.short_path)
else:
err_msg = "One or more dependent shape files are missing in the selected zip file " \
