Some error management... hopefully
This commit is contained in:
parent
ceceb69b3f
commit
a43e6fb57f
@ -34,7 +34,15 @@ namespace Txt2Bib
|
||||
return;
|
||||
}
|
||||
var txt2bib = new Text2Bib();
|
||||
var result = txt2bib.Generate(DropArea.Text);
|
||||
var result = "";
|
||||
try
|
||||
{
|
||||
result = txt2bib.Generate(DropArea.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show($"Errore di esecuzione: {ex.Message}");
|
||||
}
|
||||
Debug.Text = result;
|
||||
using var outputFile = new StreamWriter($@"{OutputDir}\output_bibtex.bib");
|
||||
outputFile.Write(result);
|
||||
|
@ -52,7 +52,7 @@ namespace Txt2Bib
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
throw new Exception($"Errore di elaborazione in {entries.Last()}");
|
||||
}
|
||||
|
||||
var bibtex = "";
|
||||
|
@ -5,7 +5,7 @@
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWPF>true</UseWPF>
|
||||
<Version>0.1.6</Version>
|
||||
<Version>0.1.7</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user