Skip to content

Commit

Permalink
fix: deprecated EmberError (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenioenko committed Aug 8, 2023
1 parent 573833c commit 2f7c85f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions addon/services/stripev3.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Service from '@ember/service';
import { getOwner } from '@ember/application';
import { resolve } from 'rsvp';
import loadScript from '@adopted-ember-addons/ember-stripe-elements/utils/load-script';
import EmberError from '@ember/error';
import { A } from '@ember/array';
import { assert } from '@ember/debug';

Expand Down Expand Up @@ -79,7 +78,7 @@ export default class StripeService extends Service {
let { publishableKey, stripeOptions } = this;

if (!publishableKey) {
throw new EmberError(
throw new Error(
'stripev3: Missing Stripe key, please set `ENV.stripe.publishableKey` in config/environment.js'
);
}
Expand Down

0 comments on commit 2f7c85f

Please sign in to comment.