Skip to content

Commit 817a410

Browse files
Merge branch 'main' of https://github.com/ai16z/eliza into release
2 parents 42f1529 + 4154da2 commit 817a410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export async function loadCharacters(
6969
}
7070
return path;
7171
});
72-
7372
const loadedCharacters = [];
7473

7574
if (characterPaths?.length > 0) {
@@ -96,6 +95,8 @@ export async function loadCharacters(
9695
loadedCharacters.push(character);
9796
} catch (e) {
9897
console.error(`Error loading character from ${path}: ${e}`);
98+
// don't continue to load if a specified file is not found
99+
process.exit(1)
99100
}
100101
}
101102
}

0 commit comments

Comments
 (0)