Detect presence of piped input and return error.