From b5b54feb70ba1dabc2ef425679f3c569b4e199fa Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 1 Apr 2022 19:44:27 +0200 Subject: In progress --- src/u_utils.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/u_utils.go') diff --git a/src/u_utils.go b/src/u_utils.go index 4a81b85..21d7da7 100644 --- a/src/u_utils.go +++ b/src/u_utils.go @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * go2work: src/u_utils.go - * Fri Apr 1 18:25:20 CEST 2022 + * Fri Apr 1 18:36:59 CEST 2022 * Joe */ @@ -95,5 +95,9 @@ func choose_file(options Options) int { } else { file_id = 0 } + if check_file_exists(options.files[file_id]) == false { + print_file_not_found(options.files[file_id]) + return -1 + } return file_id } -- cgit v1.2.3