浏览代码

fix: debug sync block

Karol Sójko 1 年之前
父节点
当前提交
1d751c0fbe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/syncing-server/src/Infra/InversifyExpressUtils/Base/BaseItemsController.ts

+ 1 - 1
packages/syncing-server/src/Infra/InversifyExpressUtils/Base/BaseItemsController.ts

@@ -36,7 +36,7 @@ export class BaseItemsController extends BaseHttpController {
 
   async sync(request: Request, response: Response): Promise<results.JsonResult> {
     if (response.locals.ongoingTransition === true) {
-      throw new Error('Cannot sync during transition')
+      throw new Error(`Cannot sync user ${response.locals.user.uuid} during transition`)
     }
 
     const itemHashes: ItemHash[] = []