Skip to content

Commit 9e6a521

Browse files
committed
more fixes
1 parent 557b418 commit 9e6a521

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

models/AgentRegistry.cfc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@ component singleton {
197197
for ( var agent in arguments.agents ) {
198198
var agentSkillsDir = getAgentSkillsDirectory( dir, agent )
199199
if ( isNull( agentSkillsDir ) ) {
200-
continue
200+
continue;
201201
}
202202

203203
var linkPath = "#agentSkillsDir#/#skill#"
204204

205205
// Skip if link/directory already exists
206206
if ( directoryExists( linkPath ) || fileExists( linkPath ) ) {
207-
continue
207+
continue;
208208
}
209209

210210
try {
@@ -249,7 +249,7 @@ component singleton {
249249
for ( var agent in arguments.agents ) {
250250
var agentSkillsDir = getAgentSkillsDirectory( dir, agent )
251251
if ( isNull( agentSkillsDir ) ) {
252-
continue
252+
continue;
253253
}
254254

255255
var linkPath = "#agentSkillsDir#/#skill#"
@@ -260,7 +260,9 @@ component singleton {
260260
Files.delete( path )
261261
}
262262
} catch ( any e ) {
263-
// Silently ignore removal errors
263+
variables.print
264+
.yellowLine( " ⚠️ Could not remove symlink for agent '#agent#': #e.message#" )
265+
.toConsole()
264266
}
265267
}
266268
}

0 commit comments

Comments
 (0)