From 1bf8c5dc885017bcc08c2123e363f51b03b434c6 Mon Sep 17 00:00:00 2001 From: Boris-Chengbiao Zhou Date: Fri, 5 May 2017 18:16:19 +0200 Subject: [PATCH] Add a possible workaround for authorization issues --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1000d14..b529789 100644 --- a/src/main.rs +++ b/src/main.rs @@ -196,7 +196,7 @@ fn get_catalog_id(name: &str, auth: &str) -> String { let prefix = "CatalogId: '"; let idx = body.find(prefix) .expect("Failed to find CatalogId on the catalog page! Perhaps you got the wrong catalog \ - name or an invalid login?"); + name or an invalid login? Maybe you need to open the page in a browser once..."); let pre_len = prefix.len(); // Assuming all catalog ids follow this pattern! let len = "a6fca0c1-0be4-4e66-83b7-bcdc4eb5e95e".len();