Improve the error message for a missing alias type