Fixes #8 - Fix patch direction in error message
This commit is contained in:
Родитель
61f1615bd1
Коммит
bdb58a48c5
2
index.js
2
index.js
|
@ -217,7 +217,7 @@ function checkAllPatchesAvailable(callback) {
|
|||
// check that this patch exists
|
||||
if ( !ctx.patches[currentPatchLevel] || !ctx.patches[currentPatchLevel][nextPatchLevel] ) {
|
||||
process.nextTick(function() {
|
||||
callback(new Error('Patch from level ' + currentPatchLevel + ' to ' + (currentPatchLevel+1) + ' does not exist'))
|
||||
callback(new Error('Patch from level ' + currentPatchLevel + ' to ' + nextPatchLevel + ' does not exist'))
|
||||
})
|
||||
return
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче