Skip to content

Commit

Permalink
Upd: image.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm committed Dec 18, 2024
1 parent 51336f2 commit 55ef926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ async function _resize(fromImage, toImage, config = {}, resolve, reject, deep =
deep++;

if(deep > 3)
console.warn('Warning: Trying once more in '+(100 * deep)+'ms with failOn: none | '+fromImage, error);
console.warn('Warning: Image resizing failed, Trying once more in '+(100 * deep)+'ms with failOn: none | '+fromImage, error);
else
console.log('Log: Trying again in '+(100 * deep)+'ms | '+fromImage, error);
console.log('Log: Image resizing failed, Trying again in '+(100 * deep)+'ms | '+fromImage, error);

await app.sleep(100 * deep);
_resize(fromImage, toImage, config, resolve, reject, deep);
Expand Down

0 comments on commit 55ef926

Please sign in to comment.