appError implemented Error interface. Simplified variable name