Skip to content

Commit

Permalink
error for unsupported stylus target in populateStylusTargetCache
Browse files Browse the repository at this point in the history
  • Loading branch information
magicxyyz committed Aug 28, 2024
1 parent 29327a8 commit aba9415
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion execution/gethexec/executionengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,13 @@ func populateStylusTargetCache(targetConfig *StylusTargetConfig) error {
effectiveStylusTarget = targetConfig.Amd64
case rawdb.TargetHost:
effectiveStylusTarget = targetConfig.Host
default:
return fmt.Errorf("unsupported stylus target: %v", target)
}
isNative := target == localTarget
err := programs.SetTarget(target, effectiveStylusTarget, isNative)
if err != nil {
return fmt.Errorf("Failed to set stylus target: %w", err)
return fmt.Errorf("failed to set stylus target: %w", err)
}
nativeSet = nativeSet || isNative
}
Expand Down

0 comments on commit aba9415

Please sign in to comment.