Fix exception message about producible media types
Issue: SPR-10175
This commit is contained in:
parent
f2d7d663b4
commit
e731746bb0
|
|
@ -112,7 +112,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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue