Fixed error logging for the default API. Helps if you throw the
exception instead of just creating it.

Signed-off-by: Dalton Pelc <daltonjpelc@gmail.com>