Skip to content

Commit 930fdd1

Browse files
committed
Adhere to repo codestyle for long error strings.
1 parent 13076b9 commit 930fdd1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/useFind.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export default function find<M extends Model = Model>(options: UseFindOptions):
6767
)
6868

6969
if (!model) {
70-
throw new Error('No model provided for useFind(). Did you define and register it with FeathersVuex?')
70+
throw new Error(
71+
`No model provided for useFind(). Did you define and register it with FeathersVuex?`
72+
)
7173
}
7274

7375
const getFetchParams = (providedParams?: Params | Ref<Params>): Params => {

src/useGet.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export default function get<M extends Model = Model>(options: UseGetOptions): Us
5555
)
5656

5757
if (!model) {
58-
throw new Error('No model provided for useGet(). Did you define and register it with FeathersVuex?')
58+
throw new Error(
59+
`No model provided for useGet(). Did you define and register it with FeathersVuex?`
60+
)
5961
}
6062

6163
function getId(): null | string | number {

0 commit comments

Comments
 (0)