Make sure switch catches E_ERROR equivalents as well