Skip to content

Commit a49d5cd

Browse files
author
Greg Cohen
committed
Merge branch 'main' of github.com:neuromorphicsystems/land
2 parents 6bdc923 + a29a828 commit a49d5cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/data.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ export function nameToUrl(name) {
3838
result += "-";
3939
wordStart = true;
4040
} else if (!REMOVE_CHARACTERS.test(character)) {
41-
throw new Error(
42-
`unsupported character "${character}" in "${name}"`,
41+
console.error(
42+
`\x1b[31m✘\x1b[0m Unsupported character "${character}" in "${name}"`,
4343
);
44+
process.exit(1);
4445
}
4546
}
4647
return result;
@@ -68,6 +69,7 @@ export function loadDatasets() {
6869
console.error(
6970
`\x1b[31m✘\x1b[0m Parsing ${name} failed: ${error}`,
7071
);
72+
process.exit(1);
7173
}
7274
}
7375
}

0 commit comments

Comments
 (0)