aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-02-16 22:24:33 -0500
committerJack Nagel2014-02-16 23:19:09 -0500
commit3df0a13a6a72c81c3520f07b9eea979fc327c380 (patch)
tree577d1ddf11178fac02136bbf7086b9e480b3e322 /Library/Formula
parentc1704a61f7e652e708a611bb1a5a8ae48853602e (diff)
downloadhomebrew-3df0a13a6a72c81c3520f07b9eea979fc327c380.tar.bz2
search: use a queue to collect errors
The threading in the tap search code makes handling errors difficult. If an API-related error is raised in one thread, it is likely to be raised in each of the rest as well. This results in duplicated error messages, which is ugly and bad UX. This patch adds a synchronized queue to collect these exceptions. The first one added to the queue is re-raised after all operations are complete. It's not ideal, but it's minimally invasive and I don't have the energy or time to do a rewrite.
Diffstat (limited to 'Library/Formula')
0 files changed, 0 insertions, 0 deletions