Skip to content

Commit d539396

Browse files
committed
Improve mktemp error message
1 parent 18ef0fa commit d539396

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libexec/tfenv-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ if mktemp --help 2>&1 | grep -- '--tmpdir' >/dev/null; then
152152
tmpdir_arg="--tmpdir";
153153
fi;
154154

155-
download_tmp="$(mktemp -d ${tmpdir_arg} tfenv_download.XXXXXX)" || log 'error' "Unable to create temporary download directory in $(pwd)";
155+
download_tmp="$(mktemp -d ${tmpdir_arg} tfenv_download.XXXXXX)" || log 'error' "Unable to create temporary download directory (mktemp -d ${tmpdir_arg} tfenv_download.XXXXXX). Working Directory is: $(pwd)";
156156

157157
# Clean it up in case of error
158158
trap "rm -rf ${download_tmp}" EXIT;

0 commit comments

Comments
 (0)