Throw error, expose log obj via debug