1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 20:42:40 +00:00

Ammending a small bug that came up in the curvyandtrans codebase

This commit is contained in:
Jocelyn Badgley (Twipped)
2021-08-11 10:19:07 -07:00
parent 240e09653a
commit f4e45758b6
2 changed files with 4 additions and 1 deletions

View File

@@ -34,6 +34,9 @@ const actions = {
},
async write ({ output, content }) {
if (!content) {
throw new TypeError('Got an empty write?' + output);
}
output = resolve(output);
await fs.ensureDir(path.dirname(output));
await fs.writeFile(output, content);