diff --git a/.gitignore b/.gitignore index 6ef2307..be4b9fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ __pycache__/ res/output/ res/input/ -.vscode/ +*.json *.pyc *.png debug.py \ No newline at end of file diff --git a/gui/gui.py b/gui/gui.py index ac91c33..24d6fa6 100644 --- a/gui/gui.py +++ b/gui/gui.py @@ -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')