Explorar el Código

#showOrLogErrorAndThrow

Artur Paikin hace 3 años
padre
commit
3b42d0ce8d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/@uppy/core/src/index.js

+ 1 - 1
packages/@uppy/core/src/index.js

@@ -565,7 +565,7 @@ class Uppy {
         if (!hasOwnProperty.call(file.meta, requiredMetaFields[i])) {
           const err = new RestrictionError(`${this.i18n('missingRequiredMetaFieldOnFile', { fileName: file.name })}`)
           errors.push(err)
-          this.showOrLogErrorAndThrow(err, { file, throwErr: false })
+          this.#showOrLogErrorAndThrow(err, { file, throwErr: false })
         }
       }
     }