We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf5592 commit 9423f80Copy full SHA for 9423f80
scripts/sync-version.mjs
@@ -44,7 +44,12 @@ async function main() {
44
throw new Error(`Version not found in ${litClientPackageJsonPath}`);
45
}
46
47
- const versionFileContents = await readFile(versionFilePath, 'utf8');
+ let versionFileContents;
48
+ try {
49
+ versionFileContents = await readFile(versionFilePath, 'utf8');
50
+ } catch (err) {
51
+ throw new Error(`Failed to read version file at ${versionFilePath}: ${err.message}`);
52
+ }
53
const match = versionFileContents.match(VERSION_EXPORT_PATTERN);
54
55
if (!match) {
0 commit comments