aboutsummaryrefslogtreecommitdiffstats
path: root/src/u_utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/u_utils.go')
-rw-r--r--src/u_utils.go6
1 files changed, 5 insertions, 1 deletions
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
}