commit 3bc08ba10cd67f5e7c71a3a89d8b951dac124f47
parent 0b4e1f93604751543ac46b4e0e78fdfeb206d4fc
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 19 Apr 2018 01:20:50 -0400
Change overwritten translator message from error to warning
Diffstat:
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js
@@ -801,9 +801,8 @@ 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 '" + entry.fileName + "'";
- Zotero.debug(msg, 1);
- Components.utils.reportError(msg);
+ Zotero.warn("Overwriting translator with same filename '"
+ + entry.fileName + "'");
yield OS.File.move(tmpFile, destFile);
}
else {
@@ -965,10 +964,8 @@ 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 " + modeType + " with same filename "
- + "'" + fileName + "'";
- Zotero.debug(msg, 1);
- Components.utils.reportError(msg);
+ Zotero.warn("Overwriting " + modeType + " with same filename "
+ + "'" + fileName + "'", 1);
yield OS.File.copy(entry.path, destFile);
}
else {