Change overwritten translator message from error to warning

This commit is contained in:
Dan Stillman 2018-04-19 01:20:50 -04:00
parent 0b4e1f9360
commit 3bc08ba10c

View File

@ -801,9 +801,8 @@ Zotero.Schema = new function(){
catch (e) { catch (e) {
if (e instanceof OS.File.Error && e.becauseExists) { if (e instanceof OS.File.Error && e.becauseExists) {
// Could overwrite automatically, but we want to log this // Could overwrite automatically, but we want to log this
let msg = "Overwriting translator with same filename '" + entry.fileName + "'"; Zotero.warn("Overwriting translator with same filename '"
Zotero.debug(msg, 1); + entry.fileName + "'");
Components.utils.reportError(msg);
yield OS.File.move(tmpFile, destFile); yield OS.File.move(tmpFile, destFile);
} }
else { else {
@ -965,10 +964,8 @@ Zotero.Schema = new function(){
catch (e) { catch (e) {
if (e instanceof OS.File.Error && e.becauseExists) { if (e instanceof OS.File.Error && e.becauseExists) {
// Could overwrite automatically, but we want to log this // Could overwrite automatically, but we want to log this
let msg = "Overwriting " + modeType + " with same filename " Zotero.warn("Overwriting " + modeType + " with same filename "
+ "'" + fileName + "'"; + "'" + fileName + "'", 1);
Zotero.debug(msg, 1);
Components.utils.reportError(msg);
yield OS.File.copy(entry.path, destFile); yield OS.File.copy(entry.path, destFile);
} }
else { else {