Commit 36ad77c
Guard err.Error() calls with require.Error to prevent nil-panic
If CreateComplianceScanConfiguration unexpectedly succeeds for a
duplicate profile, err is nil and err.Error() panics. Add require.Error
before accessing the error message.
Partially generated by AI.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c35d257 commit 36ad77c
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
| |||
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
| 720 | + | |
719 | 721 | | |
720 | 722 | | |
721 | 723 | | |
| |||
0 commit comments