Change overwritten translator message from error to warning
This commit is contained in:
parent
0b4e1f9360
commit
3bc08ba10c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user