Skip to content

Commit

Permalink
added startup bat for Windows, enabled loggin for translation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TommiNieminen committed Aug 26, 2024
1 parent 30a2cc3 commit e879798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions OpusCatMTEngineCore/OpusCatMtEngine.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
cd OpusCatMtEngine
LD_LIBRARY_PATH=$LD_LIBRARY_PATH./python3-linux-3.8.13-x86_64/lib/ PYTHONHOME=./python3-linux-3.8.13-x86_64/ ./OpusCatMtEngineCore
5 changes: 2 additions & 3 deletions OpusCatMTEngineCore/UI/TranslateView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,9 @@ private async void TranslateButtonClick(object? sender, RoutedEventArgs e)
}
this.TranslationActive = true;
}
catch (Exception)
catch (Exception ex)
{
//Log.Error(x.Exception.ToString());
//MessageBox.Show(x.Exception.ToString());
Log.Error(ex.ToString());
var errorRun = new Run("Error in the translation service, see log file for details");
errorRun.Background = Brushes.Red;
errorRun.Foreground = Brushes.White;
Expand Down

0 comments on commit e879798

Please # to comment.