revert default logic (#78)

This commit is contained in:
Anatolii Karlov 2024-07-23 20:51:47 +07:00 committed by GitHub
parent c5846552b0
commit 2053895fb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
</parent>
<artifactId>adapter-common-lib</artifactId>
<version>2.0.2</version>
<version>2.0.3</version>
<packaging>jar</packaging>
<name>adapter-common-lib</name>

View File

@ -137,7 +137,7 @@ public class ErrorMapping {
code, description, state);
var errorDefinition = new WErrorDefinition(WErrorSource.INTERNAL);
errorDefinition.setErrorType(WErrorType.UNEXPECTED_ERROR);
errorDefinition.setErrorReason("Unmapped error");
errorDefinition.setErrorReason(String.format("code = %s, description = %s", code, description));
return new WRuntimeException(errorMessage, errorDefinition);
}
}