소스 검색

Fix issues with the merge.

Jason Grout 7 년 전
부모
커밋
5d9d5db0f7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/docregistry/src/mimedocument.ts

+ 2 - 2
packages/docregistry/src/mimedocument.ts

@@ -79,7 +79,7 @@ class MimeContent extends Widget {
     }).catch(reason => {
       // Dispose the document if rendering fails.
       requestAnimationFrame(() => { this.dispose(); });
-      showErrorMessage(`Renderer Failure: ${context.path}`, reason);
+      showErrorMessage(`Renderer Failure: ${this._context.path}`, reason);
     });
   }
 
@@ -150,7 +150,7 @@ class MimeContent extends Widget {
       if (this._renderRequested) {
         return this._render();
       }
-    } catch (error) {
+    } catch (reason) {
       // Dispose the document if rendering fails.
       requestAnimationFrame(() => { this.dispose(); });
       showErrorMessage(`Renderer Failure: ${context.path}`, reason);