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.
2 parents f56c5a0 + 6fa906a commit 556f7c7Copy full SHA for 556f7c7
articles/azure-functions/functions-reference-node.md
@@ -673,8 +673,9 @@ const util = require('util');
673
const readFileAsync = util.promisify(fs.readFile);
674
675
module.exports = async function (context) {
676
+ let data;
677
try {
- const data = await readFileAsync('./hello.txt');
678
+ data = await readFileAsync('./hello.txt');
679
} catch (err) {
680
context.log.error('ERROR', err);
681
// This rethrown exception will be handled by the Functions Runtime and will only fail the individual invocation
0 commit comments