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

Commit 618ef76

Browse files
committed
refactor: Use ServerlessError in pipenv
1 parent 3950827 commit 618ef76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/pipenv.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ async function pipfileToRequirements() {
4242
e.stderrBuffer &&
4343
e.stderrBuffer.toString().includes('command not found')
4444
) {
45-
throw new Error(
46-
`pipenv not found! Install it with 'pip install pipenv'.`
45+
throw new this.serverless.classes.Error(
46+
`pipenv not found! Install it according to the poetry docs.`,
47+
'PYTHON_REQUIREMENTS_PIPENV_NOT_FOUND'
4748
);
4849
}
4950
throw e;

0 commit comments

Comments
 (0)