Skip to content

Commit

Permalink
🔧 Build url from doiString not normaliedDoi in error message
Browse files Browse the repository at this point in the history
Co-authored-by: Rowan Cockett <[email protected]>
  • Loading branch information
fwkoch and rowanc1 authored Apr 10, 2024
1 parent 559cbef commit dd9db8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/myst-cli/src/transforms/dois.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit dd9db8e

Please sign in to comment.