+ update gitignore and catch Errors

This commit is contained in:
oleting
2020-12-26 15:44:03 +01:00
parent 6f9f72e919
commit 683a0c7a70
2 changed files with 7 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
from gui.utils import nassi, output
from interpreter.interpret_source import JavaSyntaxError
import PySimpleGUI as sg
import os.path
import random
@@ -131,11 +132,14 @@ class gui:
window['-OUTPUT FILE LIST-'].update(fnames)
sg.popup_notify('Succsessful created!',
title='Created')
except JavaSyntaxError:
logging.error(('||SyntaxError in Java File||Failed to create Image with values = ' + str(values)))
sg.popup_error(('Failed to create an image: SyntaxError in your Javacode'))
except:
logging.error(
('Failed to create Image with values = ' + str(values)))
pass
sg.popup_error(('Failed to create an image: '))
elif values['-JAVA FOLDER-']:
logging.error('No Output')