@jupyter/docprovider 5.0.2 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/yprovider.js +3 -1
  2. package/package.json +2 -2
package/lib/yprovider.js CHANGED
@@ -413,7 +413,9 @@ export class WebSocketProvider {
413
413
  case 'initialization_error':
414
414
  return {
415
415
  title: trans.__('Document error'),
416
- body: trans.__('Failed to initialize the document. Close this tab and reopen the file.')
416
+ body: payload.errorReason
417
+ ? trans.__(payload.errorReason)
418
+ : trans.__('Failed to initialize the document. Close this tab and reopen the file.')
417
419
  };
418
420
  case 'unknown_session':
419
421
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/docprovider",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "description": "JupyterLab - Document Provider",
5
5
  "homepage": "https://github.com/jupyterlab/jupyter-collaboration",
6
6
  "bugs": {
@@ -41,7 +41,7 @@
41
41
  "watch": "tsc -b --watch"
42
42
  },
43
43
  "dependencies": {
44
- "@jupyter/collaborative-drive": "^5.0.2",
44
+ "@jupyter/collaborative-drive": "^5.0.4",
45
45
  "@jupyter/ydoc": "^4.0.0",
46
46
  "@jupyterlab/apputils": "^4.7.0",
47
47
  "@jupyterlab/cells": "^4.6.0",