dcadec: Add some logging before returning on error