mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-20 21:48:22 +02:00
better warnings, fix ci failing
This commit is contained in:
parent
0b54beb9ce
commit
ebd802865f
2 changed files with 5 additions and 3 deletions
|
@ -57,9 +57,12 @@ export function readVersionFromFile(
|
|||
let output: string | undefined;
|
||||
try {
|
||||
output = reader(readFileSync(path, "utf8"))?.trim();
|
||||
console.log(output);
|
||||
|
||||
if (!output) {
|
||||
warning(`Failed to read version from ${file}`);
|
||||
continue;
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
const { message } = error as Error;
|
||||
warning(`Failed to read ${file}: ${message}`);
|
||||
} finally {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue