Minor formatting/typo fix

This commit is contained in:
Qusijue 2021-08-12 20:24:23 +05:00
parent 592399b1db
commit ffe07fd193
3 changed files with 4 additions and 4 deletions

View file

@ -57,7 +57,7 @@ var str = exports.str = function(key, params) {
var getIntlKey = exports.getIntlKey = function(obj, key, overrideLocale) {
if (!obj || !obj[key]) {
throw new Error('that key ' + key + 'doesn\'t exist in this blob' + obj);
throw new Error('that key ' + key + ' doesn\'t exist in this blob ' + obj);
}
if (!obj[key][getDefaultLocale()]) {
console.warn(

View file

@ -143,7 +143,7 @@ AppConstants.StoreSubscribePrototype,
getLevelsInSequence: function(sequenceName) {
if (!levelSequences[sequenceName]) {
throw new Error('that sequecne name ' + sequenceName + 'does not exist');
throw new Error('that sequence name ' + sequenceName + ' does not exist');
}
return levelSequences[sequenceName];
},

View file

@ -219,7 +219,7 @@ GitVisuals.prototype.animateAllAttrKeys = function(keys, attr, speed, easing) {
GitVisuals.prototype.finishAnimation = function(speed) {
speed = speed || 1.0;
if (!speed) {
throw new Error('need speed by time i finish animation' + speed);
throw new Error('need speed by time i finish animation ' + speed);
}
var _this = this;
@ -309,7 +309,7 @@ GitVisuals.prototype.finishAnimation = function(speed) {
animationDone.resolve();
})
.fail(function(reason) {
console.warn('animation error' + reason);
console.warn('animation error ' + reason);
})
.done();