@@ -179,7 +179,11 @@ const espressoCommand = program
179179 } ) ;
180180 if ( credentials === null ) {
181181 throw new Error (
182- 'Please specify credentials via --api-key/--api-secret, TB_KEY/TB_SECRET environment variables, or ~/.testingbot file' ,
182+ 'No TestingBot credentials found. Please authenticate using one of these methods:\n' +
183+ ' 1. Run "testingbot login" to authenticate via browser (recommended)\n' +
184+ ' 2. Use --api-key and --api-secret options\n' +
185+ ' 3. Set TB_KEY and TB_SECRET environment variables\n' +
186+ ' 4. Create ~/.testingbot file with content: key:secret' ,
183187 ) ;
184188 }
185189 const espresso = new Espresso ( credentials , options ) ;
@@ -365,7 +369,11 @@ const maestroCommand = program
365369 } ) ;
366370 if ( credentials === null ) {
367371 throw new Error (
368- 'Please specify credentials via --api-key/--api-secret, TB_KEY/TB_SECRET environment variables, or ~/.testingbot file' ,
372+ 'No TestingBot credentials found. Please authenticate using one of these methods:\n' +
373+ ' 1. Run "testingbot login" to authenticate via browser (recommended)\n' +
374+ ' 2. Use --api-key and --api-secret options\n' +
375+ ' 3. Set TB_KEY and TB_SECRET environment variables\n' +
376+ ' 4. Create ~/.testingbot file with content: key:secret' ,
369377 ) ;
370378 }
371379 const maestro = new Maestro ( credentials , options ) ;
@@ -482,7 +490,11 @@ const xcuitestCommand = program
482490 } ) ;
483491 if ( credentials === null ) {
484492 throw new Error (
485- 'Please specify credentials via --api-key/--api-secret, TB_KEY/TB_SECRET environment variables, or ~/.testingbot file' ,
493+ 'No TestingBot credentials found. Please authenticate using one of these methods:\n' +
494+ ' 1. Run "testingbot login" to authenticate via browser (recommended)\n' +
495+ ' 2. Use --api-key and --api-secret options\n' +
496+ ' 3. Set TB_KEY and TB_SECRET environment variables\n' +
497+ ' 4. Create ~/.testingbot file with content: key:secret' ,
486498 ) ;
487499 }
488500 const xcuitest = new XCUITest ( credentials , options ) ;
0 commit comments