fix(ghidra): keep the NativeAOT target refusal's own recovery advice
An unsupported-target error always projected the generic "select a target" remediation, which hid the adapter's available workflows (omit REA_GHIDRA_NATIVEAOT_JAR for ordinary analysis, or use inspect_managed_artifact). AnalysisUnsupportedTargetError accepts a refusal-specific remediation, as AnalysisResourceConstraintError does, and the NativeAOT refusal supplies its reason. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
42c276af1e
commit
f198993f41
@@ -39,7 +39,10 @@ export const analysisErrorRemediationAction = (
|
||||
if (error instanceof AnalysisSnapshotMismatchError)
|
||||
return "Run analysis without this snapshot, then save a fresh snapshot using the intended artifact, provider, and analysis profile.";
|
||||
if (error instanceof AnalysisUnsupportedTargetError)
|
||||
return "Select a target supported by this operation or choose an operation supporting the reported target format.";
|
||||
return (
|
||||
error.remediationAction ??
|
||||
"Select a target supported by this operation or choose an operation supporting the reported target format."
|
||||
);
|
||||
if (error instanceof AnalysisResourceConstraintError)
|
||||
return (
|
||||
error.remediationAction ??
|
||||
|
||||
Reference in New Issue
Block a user