Fixed return type of format_error/2