Fix exception message about producible media types

Issue: SPR-10175
This commit is contained in:
Rossen Stoyanchev 2013-01-21 12:34:56 -05:00
parent 8e1685caef
commit e4fcad9f93
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe
}
}
if (compatibleMediaTypes.isEmpty()) {
throw new HttpMediaTypeNotAcceptableException(allSupportedMediaTypes);
throw new HttpMediaTypeNotAcceptableException(producibleMediaTypes);
}
List<MediaType> mediaTypes = new ArrayList<MediaType>(compatibleMediaTypes);