Skip to content

Commit

Permalink
fixed unsupported list
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov committed Oct 3, 2023
1 parent 466c060 commit a15a18a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ function checkFiles(files: RemoteFile[], type: SupportedShareTypes, baseError: s
);
if (erroredFiles.length !== 0) {
const unsupportedTypes = receiveExtensions(erroredFiles);
return unsupportedTypes.length ? `${baseError} Found unsupported types: ${unsupportedTypes} ` : baseError;
const extensionList = Array.from(new Set(unsupportedTypes));
return extensionList.length ? `${baseError} Found unsupported types: ${extensionList.join(', ')}. ` : baseError;
}
return '';
}
Expand Down

0 comments on commit a15a18a

Please sign in to comment.