Skip to content

Commit 0538d66

Browse files
committed
Updated index.ts
1 parent c6499ba commit 0538d66

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ for (let item of Deno.readDirSync(path.resolve('./')))
3737
{
3838
console.log(`- ${item.name}` + (item.isDirectory ? ' (directory)' : ''))
3939
}
40-
if (!exists(config.distPath))
40+
try
4141
{
4242
Deno.mkdirSync(config.distPath);
43-
console.debug('Created directory ' + config.distPath);
4443
}
44+
// don't throw :3
45+
catch (e) {console.error(`Something fucked up when creating ${config.distPath}`, e);}
46+
4547
console.log(`Reading all files in ${config.distPath}`);
4648
for (let item of Deno.readDirSync(config.distPath))
4749
{

0 commit comments

Comments
 (0)