Change hardcoded stderr to variable.
Replace hardcoded error code with descriptive name.