[gnome-documents/wip/rishi/onedrive: 6/11] documents: Be more strict about invalid code paths
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/onedrive: 6/11] documents: Be more strict about invalid code paths
- Date: Wed, 9 Aug 2017 07:32:38 +0000 (UTC)
commit 8b5f044a64db23e03655c9f75e83dee05b0d1012
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Apr 5 14:04:46 2017 +0200
documents: Be more strict about invalid code paths
src/documents.js | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index c18f8dc..b8e3b6d 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -408,19 +408,19 @@ const DocCommon = new Lang.Class({
},
load: function() {
- log('Error: DocCommon implementations must override load');
+ throw(new Error('DocCommon implementations must override load'));
},
canEdit: function() {
- log('Error: DocCommon implementations must override canEdit');
+ throw(new Error('DocCommon implementations must override canEdit'));
},
canShare: function() {
- log('Error: DocCommon implementations must override canShare');
+ throw(new Error('DocCommon implementations must override canShare'));
},
canTrash: function() {
- log('Error: DocCommon implementations must override canTrash');
+ throw(new Error('DocCommon implementations must override canTrash'));
},
canPrint: function(docModel) {
@@ -441,11 +441,11 @@ const DocCommon = new Lang.Class({
},
trashImpl: function() {
- log('Error: DocCommon implementations must override trashImpl');
+ throw(new Error('DocCommon implementations must override trashImpl'));
},
createThumbnail: function(callback) {
- log('Error: DocCommon implementations must override createThumbnail');
+ throw(new Error('DocCommon implementations must override createThumbnail'));
},
refreshIcon: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]