Add a possible workaround for authorization issues

This commit is contained in:
2017-05-05 18:16:19 +02:00
parent 9dfa19fa53
commit 1bf8c5dc88

View File

@@ -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();