Skip to content

Commit 81c6d7b

Browse files
committed
docs(postinstall): add @throws documentation to validateAgentFile
Signed-off-by: leocavalcante <[email protected]>
1 parent e200071 commit 81c6d7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

postinstall.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ const verbose = logger.verbose
6969
*
7070
* @param {string} filePath - Path to the agent file to validate
7171
* @returns {{ valid: boolean, error?: string }} Validation result with optional error message
72+
* @throws {Error} If the file does not exist (ENOENT)
73+
* @throws {Error} If permission is denied reading the file (EACCES)
74+
* @throws {Error} If the file is a directory (EISDIR)
7275
*
7376
* @example
7477
* // Validate an agent file

0 commit comments

Comments
 (0)