mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Replace console "WARNING" log calls with warn call (#4171)
This commit is contained in:
@@ -311,7 +311,7 @@ Blockly.createMainWorkspace_ = function(svg, options, blockDragSurface,
|
||||
}
|
||||
if (e) {
|
||||
if (!e.group && object) {
|
||||
console.log('WARNING: Moved object in bounds but there was no' +
|
||||
console.warn('Moved object in bounds but there was no' +
|
||||
' event group. This may break undo.');
|
||||
}
|
||||
if (oldGroup !== null) {
|
||||
|
||||
@@ -250,7 +250,7 @@ Blockly.utils.checkMessageReferences = function(message) {
|
||||
for (var i = 0; i < m.length; i++) {
|
||||
var msgKey = m[i].toUpperCase();
|
||||
if (msgTable[msgKey.slice(6, -1)] == undefined) {
|
||||
console.log('WARNING: No message string for ' + m[i] + ' in ' + message);
|
||||
console.warn('No message string for ' + m[i] + ' in ' + message);
|
||||
validSoFar = false; // Continue to report other errors.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user