@@ -146,7 +146,7 @@ export class DbConfigStore extends DisposableObject {
146146 parentList ?: string ,
147147 ) : Promise < void > {
148148 if ( ! this . config ) {
149- throw Error ( "Cannot add remote repo if config is not loaded" ) ;
149+ throw Error ( "Cannot add variant analysis repo if config is not loaded" ) ;
150150 }
151151
152152 if ( repoNwo === "" ) {
@@ -155,7 +155,7 @@ export class DbConfigStore extends DisposableObject {
155155
156156 if ( this . doesRemoteDbExist ( repoNwo ) ) {
157157 throw Error (
158- `A remote repository with the name '${ repoNwo } ' already exists` ,
158+ `A variant analysis repository with the name '${ repoNwo } ' already exists` ,
159159 ) ;
160160 }
161161
@@ -177,15 +177,15 @@ export class DbConfigStore extends DisposableObject {
177177
178178 public async addRemoteOwner ( owner : string ) : Promise < void > {
179179 if ( ! this . config ) {
180- throw Error ( "Cannot add remote owner if config is not loaded" ) ;
180+ throw Error ( "Cannot add owner if config is not loaded" ) ;
181181 }
182182
183183 if ( owner === "" ) {
184184 throw Error ( "Owner name cannot be empty" ) ;
185185 }
186186
187187 if ( this . doesRemoteOwnerExist ( owner ) ) {
188- throw Error ( `A remote owner with the name '${ owner } ' already exists` ) ;
188+ throw Error ( `An owner with the name '${ owner } ' already exists` ) ;
189189 }
190190
191191 const config = cloneDbConfig ( this . config ) ;
@@ -212,7 +212,7 @@ export class DbConfigStore extends DisposableObject {
212212
213213 public async addRemoteList ( listName : string ) : Promise < void > {
214214 if ( ! this . config ) {
215- throw Error ( "Cannot add remote list if config is not loaded" ) ;
215+ throw Error ( "Cannot add variant analysis list if config is not loaded" ) ;
216216 }
217217
218218 this . validateRemoteListName ( listName ) ;
@@ -250,7 +250,9 @@ export class DbConfigStore extends DisposableObject {
250250 newName : string ,
251251 ) {
252252 if ( ! this . config ) {
253- throw Error ( "Cannot rename remote list if config is not loaded" ) ;
253+ throw Error (
254+ "Cannot rename variant analysis list if config is not loaded" ,
255+ ) ;
254256 }
255257
256258 this . validateRemoteListName ( newName ) ;
@@ -287,7 +289,9 @@ export class DbConfigStore extends DisposableObject {
287289
288290 public doesRemoteListExist ( listName : string ) : boolean {
289291 if ( ! this . config ) {
290- throw Error ( "Cannot check remote list existence if config is not loaded" ) ;
292+ throw Error (
293+ "Cannot check variant analysis list existence if config is not loaded" ,
294+ ) ;
291295 }
292296
293297 return this . config . databases . variantAnalysis . repositoryLists . some (
@@ -306,7 +310,7 @@ export class DbConfigStore extends DisposableObject {
306310 public doesLocalDbExist ( dbName : string , listName ?: string ) : boolean {
307311 if ( ! this . config ) {
308312 throw Error (
309- "Cannot check remote database existence if config is not loaded" ,
313+ "Cannot check variant analysis repository existence if config is not loaded" ,
310314 ) ;
311315 }
312316
@@ -323,7 +327,7 @@ export class DbConfigStore extends DisposableObject {
323327 public doesRemoteDbExist ( dbName : string , listName ?: string ) : boolean {
324328 if ( ! this . config ) {
325329 throw Error (
326- "Cannot check remote database existence if config is not loaded" ,
330+ "Cannot check variant analysis repository existence if config is not loaded" ,
327331 ) ;
328332 }
329333
@@ -338,9 +342,7 @@ export class DbConfigStore extends DisposableObject {
338342
339343 public doesRemoteOwnerExist ( owner : string ) : boolean {
340344 if ( ! this . config ) {
341- throw Error (
342- "Cannot check remote owner existence if config is not loaded" ,
343- ) ;
345+ throw Error ( "Cannot check owner existence if config is not loaded" ) ;
344346 }
345347
346348 return this . config . databases . variantAnalysis . owners . includes ( owner ) ;
@@ -482,7 +484,9 @@ export class DbConfigStore extends DisposableObject {
482484 }
483485
484486 if ( this . doesRemoteListExist ( listName ) ) {
485- throw Error ( `A remote list with the name '${ listName } ' already exists` ) ;
487+ throw Error (
488+ `A variant analysis list with the name '${ listName } ' already exists` ,
489+ ) ;
486490 }
487491 }
488492
0 commit comments