From fcf3378fe483fe10c010b86f3d8216c7f7bb19df Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Mon, 12 Aug 2024 12:24:00 +0800 Subject: [PATCH] update --- src/Tools/AddProject.ts | 2 +- tests/test2/nmake.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Tools/AddProject.ts b/src/Tools/AddProject.ts index 262515a..9a263c3 100644 --- a/src/Tools/AddProject.ts +++ b/src/Tools/AddProject.ts @@ -5,7 +5,7 @@ import { getGlobalProjects } from "./Projects"; export const addProject = (f:{():Project}) =>{ const project = f() if(getGlobalProjects()[project.name]){ - printErrorOrDebug(`the project ${project.name} was used please rename it`) + printErrorOrDebug(`the project name ${project.name} was used please rename it`) } getGlobalProjects()[project.name] = project } \ No newline at end of file diff --git a/tests/test2/nmake.ts b/tests/test2/nmake.ts index 4e8c235..9353405 100644 --- a/tests/test2/nmake.ts +++ b/tests/test2/nmake.ts @@ -7,6 +7,7 @@ addProject(()=>{ return new CppProject("hello") }) -new CppProject("hello") -new CppProject("hello") +addProject(()=>{ + return new CppProject("hello") +}) \ No newline at end of file