Improve error messages on failed switch()