Skip to content

Commit e48589c

Browse files
authored
Print exception if it's of type URLError (#946)
This prints the exception out if it's of type URLError when trying to retrieve the default rosdep source list. This is intended to help others debug #934 should they run into it. Signed-off-by: Shane Loretz <[email protected]>
1 parent 20a28a8 commit e48589c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rosdep2/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ def command_init(options):
603603
data = download_default_sources_list()
604604
except URLError as e:
605605
print('ERROR: cannot download default sources list from:\n%s\nWebsite may be down.' % (DEFAULT_SOURCES_LIST_URL), file=sys.stderr)
606+
print(e, file=sys.stderr)
606607
return 4
607608
except DownloadFailure as e:
608609
print('ERROR: cannot download default sources list from:\n%s\nWebsite may be down.' % (DEFAULT_SOURCES_LIST_URL), file=sys.stderr)

0 commit comments

Comments
 (0)