Previously, any exception thrown in the upstreamcache.promote method would simply cause the boulder process to hang. Not quite friendly!
Therefore, we wrap the promote method in a try-catch block and manually call onFetchFail with the appropriate failure message when a package fails to get promoted.
Ref: #80.
Previously, any exception thrown in the
upstreamcache.promote
method would simply cause theboulder
process to hang. Not quite friendly!Therefore, we wrap the
promote
method in atry-catch
block and manually callonFetchFail
with the appropriate failure message when a package fails to get promoted.