don't translate error message and replace console log with exception
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
/**
|
||||
* @requires OpenLayers/BaseTypes/Class.js
|
||||
* @requires OpenLayers/Util.js
|
||||
* @requires OpenLayers/Console.js
|
||||
* @requires OpenLayers/Lang.js
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -104,7 +102,7 @@ OpenLayers.Format = OpenLayers.Class({
|
||||
* Depends on the subclass
|
||||
*/
|
||||
read: function(data) {
|
||||
OpenLayers.Console.userError(OpenLayers.i18n("readNotImplemented"));
|
||||
throw new Error('Read not implemented.');
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -118,7 +116,7 @@ OpenLayers.Format = OpenLayers.Class({
|
||||
* {String} A string representation of the object.
|
||||
*/
|
||||
write: function(object) {
|
||||
OpenLayers.Console.userError(OpenLayers.i18n("writeNotImplemented"));
|
||||
throw new Error('Write not implemented.');
|
||||
},
|
||||
|
||||
CLASS_NAME: "OpenLayers.Format"
|
||||
|
||||
Reference in New Issue
Block a user