diff options
| author | Jack Nagel | 2014-02-16 22:24:33 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-16 23:19:09 -0500 |
| commit | 7bdaa7ffe1cd837d0f2d6c5007907534b8aaeb0e (patch) | |
| tree | 9a53db8f6e0329c20f01dc4b73c1752a7b564cb4 /Library/Homebrew/extend | |
| parent | ea7415237c33744a00c6b27aebfa42416a0b01d1 (diff) | |
| download | brew-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
