the error message should probably go into the exception and the exception class should look more like ContentLengthMismatch with platform passed into it (and probably not platform_family like in the Chef::Log.error above...