0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-25 02:45:12 +00:00

[update] Use error code 100 for update errors

This error code was previously used for
"Exiting to finish update", but is no longer used

Closes #5198
This commit is contained in:
pukkandan 2022-11-07 02:37:23 +05:30
parent 46d09f8707
commit ff48fc04d0
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -174,6 +174,7 @@ def release_hash(self):
def _report_error(self, msg, expected=False): def _report_error(self, msg, expected=False):
self.ydl.report_error(msg, tb=False if expected else None) self.ydl.report_error(msg, tb=False if expected else None)
self.ydl._download_retcode = 100
def _report_permission_error(self, file): def _report_permission_error(self, file):
self._report_error(f'Unable to write to {file}; Try running as administrator', True) self._report_error(f'Unable to write to {file}; Try running as administrator', True)