ci-gui: show error reason for cdn titles

This commit is contained in:
Ian Burgwin
2021-02-09 00:01:59 -08:00
parent 8ed6ca54cc
commit d27e181c40

View File

@@ -339,7 +339,9 @@ class CustomInstallGUI(ttk.Frame):
initialdir=file_parent)
if d:
if isfile(join(d, 'tmd')):
self.add_cia(d)
success, reason = self.add_cia(d)
if not success:
self.show_error(f"Couldn't add {basename(d)}: {reason}")
else:
self.show_error('tmd file not found in the CDN directory:\n' + d)