mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 12:38:24 +02:00
log loglog
This commit is contained in:
parent
7df30a5ed3
commit
2c991200e5
1 changed files with 3 additions and 1 deletions
|
@ -55,8 +55,10 @@ export function readVersionFromFile(
|
||||||
|
|
||||||
let output: string | undefined;
|
let output: string | undefined;
|
||||||
try {
|
try {
|
||||||
output = reader(readFileSync(path, "utf8"));
|
output = reader(readFileSync(path, "utf8"))?.trim();
|
||||||
|
console.log(output);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
const { message } = error as Error;
|
const { message } = error as Error;
|
||||||
warning(`Failed to read ${file}: ${message}`);
|
warning(`Failed to read ${file}: ${message}`);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue