Allow to customize the Scala client's behaviour on failure.

- Allow to override the logging message/method when the response is invalid/not found
- When looking for JSON, consider blank contents as none.
done

On Tue, Oct 7, 2014 at 12:14 PM, Lloyd <notifications@github.com> wrote:

> In
> scala-ws-client/src/main/scala/com/m3/octoparts/ws/AggregateResponseEnrichment.scala:
>
> > @@ -104,4 +103,8 @@ object AggregateResponseEnrichment {
> >      }.mkString("; ")
> >    }
> >
> > +  def warnFailure[A](id: String, failure: Throwable): Option[A] = {
>
> Actually, since None is of type Option[Nothing], using a function literal
> here works fine :) Please consider it after all.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/m3dev/octoparts/pull/38/files#r18498875>.
>