fix(targets): project invalid raw-binary loads as caller input (#2004)
* fix(targets): project invalid raw-binary loads as caller input * fix(targets): name real load options and cover DOS COM kind pairing
This commit is contained in:
@@ -105,9 +105,11 @@ const underlyingErrorCode = (
|
||||
if (error instanceof ArtifactOperationError)
|
||||
return artifactOperationCode(error);
|
||||
if (error instanceof BinaryTargetError)
|
||||
return error.systemCode === undefined
|
||||
? "target_unavailable"
|
||||
: "access_denied";
|
||||
return error.constraint === "load_selection_rejected"
|
||||
? "invalid_request"
|
||||
: error.systemCode === undefined
|
||||
? "target_unavailable"
|
||||
: "access_denied";
|
||||
if (error instanceof EvidenceFileError) return evidenceFileCode(error.reason);
|
||||
if (error instanceof UnknownRegistryError)
|
||||
return unknownRegistryCode(error.reason);
|
||||
|
||||
Reference in New Issue
Block a user