Update error message to use constant instead of hardcoded value