mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-25 21:03:05 +07:00
remove console debugging
This commit is contained in:
parent
a274d1e1e7
commit
9d34712f10
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -139,11 +139,9 @@ function run() {
|
|||||||
core.debug(`Tool path added to PATH: ${toolFolderPath}`);
|
core.debug(`Tool path added to PATH: ${toolFolderPath}`);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
let errorMessage = 'Failed to do something exceptional';
|
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
errorMessage = error.message;
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
console.log(errorMessage);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -129,11 +129,9 @@ async function run(): Promise<void> {
|
|||||||
core.addPath(toolFolderPath)
|
core.addPath(toolFolderPath)
|
||||||
core.debug(`Tool path added to PATH: ${toolFolderPath}`)
|
core.debug(`Tool path added to PATH: ${toolFolderPath}`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
let errorMessage = 'Failed to do something exceptional'
|
|
||||||
if (error instanceof Error) {
|
if (error instanceof Error) {
|
||||||
errorMessage = error.message
|
core.setFailed(error.message)
|
||||||
}
|
}
|
||||||
console.log(errorMessage)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user