We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c86188 commit a5fa012Copy full SHA for a5fa012
errors/src/main/java/com/palantir/remoting/api/errors/SerializableError.java
@@ -23,6 +23,7 @@
23
import com.palantir.logsafe.Arg;
24
import java.io.Serializable;
25
import java.util.Map;
26
+import java.util.Objects;
27
import org.immutables.value.Value;
28
29
/**
@@ -116,7 +117,7 @@ public static SerializableError forException(ServiceException exception) {
116
117
.errorInstanceId(exception.getErrorInstanceId());
118
119
for (Arg<?> arg : exception.getArgs()) {
- builder.putParameters(arg.getName(), arg.getValue().toString());
120
+ builder.putParameters(arg.getName(), Objects.toString(arg.getValue()));
121
}
122
123
return builder.build();
0 commit comments