Make missing auth token error message more helpful
Change-Id: I2cb4663af811ee9876b433af8b94b9098d8d4ebf
diff --git a/R/visitssummary.R b/R/visitssummary.R
index 3b99349..e7761cc 100644
--- a/R/visitssummary.R
+++ b/R/visitssummary.R
@@ -43,9 +43,9 @@
if (is.null(accessToken) && matomoUrl != "https://demo.matomo.org/") {
stop(
paste0(
- "You mast set an access token with persistAccessToken(\"",
+ "You must first set an access token with:\n\npersistAccessToken(\"",
matomoUrl,
- "\", token) first. Get the token in your matomo interface under Settings -> Personal -> Settings -> API Authentication Token."
+ "\", <token>)\n\nYou can get the token in your matomo interface under Settings -> Personal -> Security -> Auth token\nprobably at:\n\n", matomoUrl, "index.php?module=UsersManager&action=userSecurity\n\n"
),
call. = FALSE
)