[Chapel Merge] Fix error in error handling for CC/CXX conflict

Branch: refs/heads/main
Revision: a254922
Author: mppf
Log Message:

Merge pull request #18052 from mppf/fix-conflicting-cc-cxx

Fix error in error handling for CC/CXX conflict

To resolve the issue brought up by @ronawho in Allow setting CC, CXX, and other variables to indicate compiler path by mppf · Pull Request #17923 · chapel-lang/chapel · GitHub

Reviewed by @ronawho - thanks!