Skip to content

Commit 05b6cb3

Browse files
committed
chore: Update obsolete property name in error message
The `INVALID_CONTROLLER_ERROR` error message incorrectly referenced the property name `messagingSystem`, which is no longer used in the next version of the `BaseController` class (which the `ComposableController` switched to in the PR `#6710). The error message was updated to no mention the messenger instance variable at all, since the check that triggered the error doesn't look for it anyway.
1 parent a607066 commit 05b6cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/composable-controller/src/ComposableController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { Messenger } from '@metamask/messenger';
1212
export const controllerName = 'ComposableController';
1313

1414
export const INVALID_CONTROLLER_ERROR =
15-
'Invalid controller: controller must have a `messagingSystem` and inherit from `BaseController`.';
15+
'Invalid controller: controller must inherit from `BaseController`.';
1616

1717
/**
1818
* The narrowest supertype for the composable controller state object.

0 commit comments

Comments
 (0)