Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support serverless >= 4.0.23 (#632) #635

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timo92
Copy link

@timo92 timo92 commented Jul 18, 2024

No description provided.

@@ -50,7 +49,7 @@ export class Schema {
valdiateSchema(schema: string) {
const errors = validateSDL(parse(schema));
if (errors.length > 0) {
throw new ServerlessError(
throw new this.api.plugin.serverless.classes.Error(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Align the way errors are raised with the rest of the repository e.g.

throw new this.api.plugin.serverless.classes.Error(
.
The ServerlessError import is no longer available starting with serverless 4.0.23.

@bboure
Copy link
Collaborator

bboure commented Jul 18, 2024

Thank you!

@nonso-caleb
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants