Skip to content

Commit

Permalink
Clarify error message (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoenig10 authored Jun 22, 2023
1 parent ed0c4d1 commit 26c1dd1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import com.squareup.javapoet.CodeBlock;
import com.squareup.javapoet.TypeName;
import io.undertow.server.HttpServerExchange;
import java.io.InputStream;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -146,9 +145,8 @@ public Optional<ParameterType> getParameterType(VariableElement variableElement,
return Optional.of(ParameterTypes.context());
} else {
context.reportError(
"At least one annotation should be present or type should be InputStream",
"At least one annotation should be present",
variableElement,
SafeArg.of("requestBody", InputStream.class),
SafeArg.of("supportedAnnotations", PARAM_ANNOTATION_CLASSES));
return Optional.empty();
}
Expand Down

0 comments on commit 26c1dd1

Please sign in to comment.