% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ru_setup.R
\name{yell_if_error}
\alias{yell_if_error}
\title{Warn about failed web requests and give helpful troubleshooting tips.}
\usage{
yell_if_error(response, url, un, pw, pid = NULL, fid = NULL)
}
\arguments{
\item{response}{A httr response object}

\item{url}{A URL (character)}

\item{un}{A username (character)}

\item{pw}{A password (character)}

\item{pid}{A project ID (numeric, optional)}

\item{fid}{A form ID (character, optional)}
}
\value{
The response object
}
\description{
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#stable}{\figure{lifecycle-stable.svg}{options: alt='[Stable]'}}}{\strong{[Stable]}}
}
\details{
A wrapper around \code{httr::stop_for_status} with a more helpful error
message.
Examples: see tests for \code{\link{project_list}}.
This function is used internally but may be useful for debugging and
\code{\link{ruODK}} development.
}
\seealso{
Other ru_settings: 
\code{\link{odata_svc_parse}()},
\code{\link{parse_odkc_version}()},
\code{\link{ru_settings}()},
\code{\link{ru_setup}()},
\code{\link{semver_gt}()},
\code{\link{semver_lt}()},
\code{\link{yell_if_missing}()}
}
\concept{ru_settings}
\keyword{internal}
