With the recent change to use ociregistry.WireError as the common implementation of oci.Error,
the error message contains the error code as a prefix. When an error is marshaled by ociserver
for sending back to the client, that prefix remains in the message. However, ociclientalso adds the prefix when it creates a WireError from the JSON representation,
leading to a duplicate error code prefix.
The ociserver implementation should probably strip the error code prefix from the message before
marshaling it.
With the recent change to use
ociregistry.WireError
as the common implementation ofoci.Error
, the error message contains the error code as a prefix. When an error is marshaled byociserver
for sending back to the client, that prefix remains in the message. However,ociclient
also adds the prefix when it creates aWireError
from the JSON representation, leading to a duplicate error code prefix.The
ociserver
implementation should probably strip the error code prefix from the message before marshaling it.