We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e796f commit 6297275Copy full SHA for 6297275
packages/mongodb-memory-server-core/src/util/errors.ts
@@ -1,7 +1,7 @@
1
import { isNullOrUndefined } from './utils';
2
3
export class StateError extends Error {
4
- constructor(public wantedStates: [string], public gotState: string) {
+ constructor(public wantedStates: string[], public gotState: string) {
5
super(
6
`Incorrect State for operation: "${gotState}", allowed States: "[${wantedStates.join(',')}]"`
7
);
0 commit comments