Show more meaningful error message when alias is invalid

Closes #11