[Chapel Merge] Change halt() for unexpected type in HDF5 to compi

Branch: refs/heads/master
Revision: 7d9a4c1
Author: bradcray
Log Message:

Merge pull request #16635 from bradcray/hdf5-comp-error-unexpected-type

Change halt() for unexpected type in HDF5 to compilerError

[reviewed by @daviditen]

This changes a type-logic halt() into a compilerError() for a better user experience, and a test to lock in the behavior.

Resolves #16587

Modified Files:
A test/library/packages/canCompileNoLink/errors/getUnsupportedHDF5type.chpl
A test/library/packages/canCompileNoLink/errors/getUnsupportedHDF5type.good
M modules/packages/HDF5.chpl

Compare: https://github.com/chapel-lang/chapel/compare/3254619e3767...7d9a4c134264