shiveshnavin commited on
Commit
f23e96c
·
1 Parent(s): eda2ac9
Files changed (1) hide show
  1. utils/AvatarRender.js +2 -1
utils/AvatarRender.js CHANGED
@@ -13,7 +13,8 @@ export class AvatarRenderer {
13
  // make sure the caption files are in ass format and exist
14
  for (let captionFile of captionFiles) {
15
  if (!captionFile || !captionFile.endsWith('.ass')) {
16
- throw new Error('Invalid caption file format. Expected .ass files for item ' + (captionFiles.indexOf(captionFile) + 1) + '. Did you forget to use `caption` plugin?');
 
17
  }
18
  }
19
  return true;
 
13
  // make sure the caption files are in ass format and exist
14
  for (let captionFile of captionFiles) {
15
  if (!captionFile || !captionFile.endsWith('.ass')) {
16
+ console.error('Invalid caption file format. Expected .ass files for item ' + (captionFiles.indexOf(captionFile) + 1) + '. Did you forget to use `caption` plugin?');
17
+ return false
18
  }
19
  }
20
  return true;