Skip to content

Commit 1e71340

Browse files
committed
fix: abort on disallowed single folder
1 parent e6bf6d4 commit 1e71340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/TemplateEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export abstract class TemplateEngine extends QuickAddEngine {
278278
if (selection.isEmpty) return "";
279279
if (!selection.isAllowed) {
280280
this.showFolderNotAllowedNotice(context.allowedRoots);
281-
return "";
281+
throw new MacroAbortError("Selected folder not allowed.");
282282
}
283283

284284
if (selection.resolved) {

0 commit comments

Comments
 (0)