chore: add enough message for assert

This commit is contained in:
tzhangchi committed 2023-01-14 09:58:25 +08:00
1 parent cd2495e4e0
commit 49a8be3ce6
1 file changed
+4 -1
@@ -111,7 +111,10 @@ export class AffineProvider extends BaseProvider {
if (index !== -1) { if (index !== -1) {
removeWorkspaceList.splice(index, 1); removeWorkspaceList.splice(index, 1);
} }
assert(name); assert(
name,
'workspace name not found by id when receive server message'
);
const workspace = { const workspace = {
name: name, name: name,
avatar, avatar,