feat(l2s): add better error msgs and fix 1610 list
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
3e35ecadc9
commit
b49274e464
2 changed files with 15 additions and 15 deletions
|
@ -537,6 +537,11 @@
|
|||
"title": "8 Months Ago...",
|
||||
"number": 29
|
||||
},
|
||||
{
|
||||
"series": "List Redirects",
|
||||
"title": "1610 - Redirect",
|
||||
"number": 1
|
||||
},
|
||||
{
|
||||
"series": "Avengers",
|
||||
"title": "Over there",
|
||||
|
@ -567,11 +572,6 @@
|
|||
"title": "...And All That's Left Is Ashes",
|
||||
"number": 43
|
||||
},
|
||||
{
|
||||
"series": "List Redirects",
|
||||
"title": "1610 - Redirect",
|
||||
"number": 1
|
||||
},
|
||||
{
|
||||
"series": "New Avengers (2013)",
|
||||
"title": "In Latveria, the Flowers Die in Summer",
|
||||
|
@ -1413,7 +1413,7 @@
|
|||
"number": 1
|
||||
},
|
||||
{
|
||||
"series": "Ultimate Spider-Man: Ultimate Six",
|
||||
"series": "Ultimate Spider-Man",
|
||||
"title": "Ultimate Six",
|
||||
"number": 1
|
||||
},
|
||||
|
@ -1943,7 +1943,7 @@
|
|||
"number": 1
|
||||
},
|
||||
{
|
||||
"series": "Ultimate Spider-Man: Ultimate Knights",
|
||||
"series": "Ultimate Spider-Man",
|
||||
"title": "Ultimate Knights",
|
||||
"number": 1
|
||||
},
|
||||
|
@ -1998,7 +1998,7 @@
|
|||
"number": 122
|
||||
},
|
||||
{
|
||||
"series": "Ultimate Spider-Man: War of the Symbiotes",
|
||||
"series": "Ultimate Spider-Man",
|
||||
"title": "Volume 21",
|
||||
"number": 1
|
||||
},
|
||||
|
@ -2383,7 +2383,7 @@
|
|||
"number": 4
|
||||
},
|
||||
{
|
||||
"series": "Ultimate Comics Hawkeye by Hickman",
|
||||
"series": "Ultimate Comics Hawkeye by Jonathan Hickman",
|
||||
"title": "Ultimate Comics Hawkeye by Hickman",
|
||||
"number": 1
|
||||
},
|
||||
|
@ -2806,11 +2806,6 @@
|
|||
"series": "Miles Morales: Ultimate Spider-Man",
|
||||
"title": "Is this the End?",
|
||||
"number": 12
|
||||
},
|
||||
{
|
||||
"series": "Ultimate End",
|
||||
"title": "TPB",
|
||||
"number": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -317,9 +317,14 @@ const main = async(): Promise<void> => {
|
|||
b.metadata.title === title &&
|
||||
b.metadata.numberSort === number);
|
||||
|
||||
if (matchingBooks.length === 0) {
|
||||
console.error(matchingBooks, number);
|
||||
throw new Error(`No issue matched the title '${title}' from ${series}`);
|
||||
}
|
||||
|
||||
if (matchingBooks.length !== 1) {
|
||||
console.error(matchingBooks, number);
|
||||
throw new Error(`More than one issue matched the title '${title}'`);
|
||||
throw new Error(`More than one issue matched the title '${title}' from ${series}`);
|
||||
}
|
||||
|
||||
bookIds[i] = matchingBooks[0].id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue