Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
catch ME
if contains(ME.message, 'rate limit')
error('GitHub API rate limit exceeded. Consider using a GITHUB_TOKEN environment variable.');
elseif strcmp(ME.identifier, 'MATLAB:webservices:HTTP404StatusCodeError')
% GitHub returns 404 when it finds no license file in the repository
error('MatBox:GitHub:LicenseNotFound', ...
['GitHub found no license for the repository "%s/%s". ', ...
'Add a LICENSE file to that repository.'], ...
repositoryOwner, repositoryName)
else
rethrow(ME);
end
Expand Down
Loading