Skip to content

Commit da958dc

Browse files
committed
Verify matched error message; Update reference
1 parent 7b640f1 commit da958dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/new.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function newCmd (args: string[]): Promise<void> {
2626
}
2727
catch (ex) {
2828
if (ex instanceof Error) {
29-
// https://deno.land/std@0.95.0/fs/ensure_dir.ts#L14
29+
// https://deno.land/std@0.97.0/fs/ensure_dir.ts#L14
3030
const expectedString = `Ensure path exists, expected 'dir', got '`;
3131
if (ex.message.startsWith(expectedString)) {
3232
exitWithMessage(1, `"${dir}" already exists, but is not a directory`);

0 commit comments

Comments
 (0)