[enh] Use --message

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
ljf (zamentur) 2021-09-08 15:43:59 +02:00 committed by GitHub
parent df20a54013
commit 62875c30da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -592,7 +592,7 @@ ynh_write_var_in_file() {
ynh_handle_getopts_args "$@"
after="${after:-}"
[[ -f $file ]] || ynh_die "File $file does not exists"
[[ -f $file ]] || ynh_die --message="File $file does not exists"
# Get the line number after which we search for the variable
local line_number=1