Skip to content
Snippets Groups Projects
Commit 32386642 authored by rhenck's avatar rhenck
Browse files

Throw error when no type is given to ID-Service

parent 8ee52310
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,9 @@ export class IdService {
}
getNewID(type: string): string {
if (!type) {
throw Error('ID-Service: No type given!');
}
do {
this.idCounter[type] += 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment