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.
1 parent 5152a8a commit 7b94f96Copy full SHA for 7b94f96
functions/data.js
@@ -90,7 +90,14 @@ const yamlFile = async (context) => {
90
let fileContents = yamlfile
91
configyml = yaml.load(fileContents);
92
} catch (e) {
93
+ const issueBody = context.issue({
94
+ title: "[ERROR] Please read",
95
+ body: `There was an issue parsing the config file of this course. Please contact your counselor and send them the below error.\n${e}`,
96
+ });
97
+
98
+ context.octokit.issues.create(issueBody)
99
console.log("ERROR: " + e);
100
+ return null
101
}
102
103
return configyml;
0 commit comments