Skip to content

Commit 556f7c7

Browse files
authored
Merge pull request #93213 from PramodValavala-MSFT/patch-67
(AzureCXP) fix code sample
2 parents f56c5a0 + 6fa906a commit 556f7c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/azure-functions/functions-reference-node.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,9 @@ const util = require('util');
673673
const readFileAsync = util.promisify(fs.readFile);
674674

675675
module.exports = async function (context) {
676+
let data;
676677
try {
677-
const data = await readFileAsync('./hello.txt');
678+
data = await readFileAsync('./hello.txt');
678679
} catch (err) {
679680
context.log.error('ERROR', err);
680681
// This rethrown exception will be handled by the Functions Runtime and will only fail the individual invocation

0 commit comments

Comments
 (0)