Corrected popError() parameter type and function usage.