aboutsummaryrefslogtreecommitdiffstats
path: root/src/u_utils.go
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 19:44:27 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 19:44:27 +0200
commitb5b54feb70ba1dabc2ef425679f3c569b4e199fa (patch)
treee1f1605ab39455479d7d6c9c30e4e6f09badf729 /src/u_utils.go
parentRandom works fine (diff)
downloadgo2work-b5b54feb70ba1dabc2ef425679f3c569b4e199fa.tar.gz
go2work-b5b54feb70ba1dabc2ef425679f3c569b4e199fa.tar.bz2
go2work-b5b54feb70ba1dabc2ef425679f3c569b4e199fa.tar.xz
go2work-b5b54feb70ba1dabc2ef425679f3c569b4e199fa.tar.zst
go2work-b5b54feb70ba1dabc2ef425679f3c569b4e199fa.zip
In progress
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
}