DRYed up post_parameters_error code.
Small variable name change for clarity.