Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 3950827

Browse files
committed
refactor: Use ServerlessError in poetry
1 parent cdb7111 commit 3950827

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/poetry.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ async function pyprojectTomlToRequirements() {
5050
e.stderrBuffer &&
5151
e.stderrBuffer.toString().includes('command not found')
5252
) {
53-
throw new Error(
54-
`poetry not found! Install it according to the poetry docs.`
53+
throw new this.serverless.classes.Error(
54+
`poetry not found! Install it according to the poetry docs.`,
55+
'PYTHON_REQUIREMENTS_POETRY_NOT_FOUND'
5556
);
5657
}
5758
throw e;

0 commit comments

Comments
 (0)