Skip to content

Commit

Permalink
feat(configuration): add no config provided error
Browse files Browse the repository at this point in the history
  • Loading branch information
emkis committed May 15, 2022
1 parent 47e20ea commit 281fa22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/configuration/configuration-errors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { InvalidConfigurationError } from '@/error'

export function throwNoConfigurationProvided() {
throw new InvalidConfigurationError(
`You've called configure function without a configuration object.`
)
}

0 comments on commit 281fa22

Please sign in to comment.