Fix error when overwriting translation with some filename
This commit is contained in:
parent
efde92f1ee
commit
d89da85606
1 changed files with 1 additions and 1 deletions
|
@ -753,7 +753,7 @@ Zotero.Schema = new function(){
|
|||
catch (e) {
|
||||
if (e instanceof OS.File.Error && e.becauseExists) {
|
||||
// Could overwrite automatically, but we want to log this
|
||||
let msg = "Overwriting translator with same filename '" + fileName + "'";
|
||||
let msg = "Overwriting translator with same filename '" + entry.fileName + "'";
|
||||
Zotero.debug(msg, 1);
|
||||
Components.utils.reportError(msg);
|
||||
yield OS.File.move(tmpFile, destFile);
|
||||
|
|
Loading…
Add table
Reference in a new issue