aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2014-02-16 22:24:33 -0500
committerJack Nagel2014-02-16 23:19:09 -0500
commit7bdaa7ffe1cd837d0f2d6c5007907534b8aaeb0e (patch)
tree9a53db8f6e0329c20f01dc4b73c1752a7b564cb4 /Library/Homebrew/extend
parentea7415237c33744a00c6b27aebfa42416a0b01d1 (diff)
downloadbrew-7bdaa7ffe1cd837d0f2d6c5007907534b8aaeb0e.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/Homebrew/extend')
0 files changed, 0 insertions, 0 deletions