Skip to content

Commit

Permalink
Print failure to load customer code to stderr (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
inlined committed Jun 26, 2023
1 parent bc21990 commit 3e1b5ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/firebase-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ if (process.env.FUNCTIONS_CONTROL_API === "true") {
res.setHeader("content-type", "text/yaml");
res.send(JSON.stringify(stackToWire(stack)));
} catch (e) {
console.error(e);
res.status(400).send(`Failed to generate manifest from function source: ${e}`);
}
});
Expand Down

0 comments on commit 3e1b5ca

Please sign in to comment.