File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,8 @@ export namespace SecretsManager {
255
255
if ( isDisabled ( 'jupyter-secrets-manager:manager' ) ) {
256
256
// If the secrets manager is disabled, we need to lock the manager, but not
257
257
// throw an error, to let the plugin get activated anyway.
258
- lock ( 'Secret registry is disabled.' , false ) ;
258
+ console . warn ( 'Secrets manager is disabled.' ) ;
259
+ lock ( ) ;
259
260
}
260
261
if ( isDisabled ( id ) ) {
261
262
lock ( `Sign error: plugin ${ id } is disabled.` ) ;
@@ -295,12 +296,10 @@ namespace Private {
295
296
*
296
297
* @param message - the error message to throw.
297
298
*/
298
- export function lock ( message : string , throwError = true ) : void {
299
+ export function lock ( message ? : string ) : void {
299
300
locked = true ;
300
- if ( throwError ) {
301
+ if ( message ) {
301
302
throw new Error ( message ) ;
302
- } else {
303
- console . warn ( message ) ;
304
303
}
305
304
}
306
305
You can’t perform that action at this time.
0 commit comments