Skip to content

Commit 1f6068d

Browse files
balazspeczelidacbd
andauthored
Improve error message (#1349)
* Improve error message * Update src/analytics.js * Fix linting --------- Co-authored-by: Daniel Barnes <[email protected]>
1 parent 7ac60ee commit 1f6068d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/analytics.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const {
3737
const ID_DO_NOT_TRACK = 'do-not-track';
3838

3939
const deterministic = async (data) => {
40-
if (!data) throw new Error('data is not set calculating deterministic uuid');
40+
if (!data)
41+
throw new Error("data is not set, can't calculate a deterministic uuid");
4142

4243
const namespace = uuidv5('iterative.ai', uuidv5.DNS);
4344
const name = await promisify(scrypt)(data, parse(namespace), 8, {

0 commit comments

Comments
 (0)