From dd9db8e0539a5cf5f7b10928fe6ef897bd7710f5 Mon Sep 17 00:00:00 2001 From: Franklin Koch Date: Wed, 10 Apr 2024 15:10:37 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Build=20url=20from=20`doiString`?= =?UTF-8?q?=20not=20`normaliedDoi`=20in=20error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rowan Cockett --- packages/myst-cli/src/transforms/dois.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/myst-cli/src/transforms/dois.ts b/packages/myst-cli/src/transforms/dois.ts index 241d7147b..98c38d0a3 100644 --- a/packages/myst-cli/src/transforms/dois.ts +++ b/packages/myst-cli/src/transforms/dois.ts @@ -194,7 +194,7 @@ export async function getCitation( let note: string | undefined; if (resolves) { message = `Citation data from doi.org was not available or malformed for doi:${normalizedDoi}`; - note = `To resolve this error, visit ${doi.buildUrl(normalizedDoi)} and add citation info to local BibTeX file`; + note = `To resolve this error, visit ${doi.buildUrl(doiString)} and add citation info to local BibTeX file`; } else { message = `Could not find DOI "${doiString}" from doi.org as doi:${normalizedDoi}`; note = 'Please check the DOI and, if correct, add citation info to local BibTeX file';