mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
It always showed "imported"
This commit is contained in:
@@ -1079,8 +1079,8 @@ Make a selection:
|
|||||||
{
|
{
|
||||||
logger.Log("Beginning import of " + filename);
|
logger.Log("Beginning import of " + filename);
|
||||||
Import imp = new Import(filename, _connectionString, logger);
|
Import imp = new Import(filename, _connectionString, logger);
|
||||||
imp.ImportData();
|
bool success = imp.ImportData();
|
||||||
logger.Log(filename + " imported!");
|
logger.Log(filename + (success ? "" : " not") + " imported!");
|
||||||
}
|
}
|
||||||
// Check to see if the second argument is a directory that exists
|
// Check to see if the second argument is a directory that exists
|
||||||
else if (filename != "" && Directory.Exists(filename))
|
else if (filename != "" && Directory.Exists(filename))
|
||||||
@@ -1089,8 +1089,8 @@ Make a selection:
|
|||||||
{
|
{
|
||||||
logger.Log("Beginning import of " + file);
|
logger.Log("Beginning import of " + file);
|
||||||
Import imp = new Import(file, _connectionString, logger);
|
Import imp = new Import(file, _connectionString, logger);
|
||||||
imp.ImportData();
|
bool success = imp.ImportData();
|
||||||
logger.Log(file + " imported!");
|
logger.Log(file + (success ? "" : " not") + " imported!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user