diff --git a/src/c/unixfsys.d b/src/c/unixfsys.d index 01e6867a0..b64a4b1f8 100644 --- a/src/c/unixfsys.d +++ b/src/c/unixfsys.d @@ -596,8 +596,8 @@ cl_delete_file(cl_object file) if (ok < 0) { const char *msg = isdir? - "Cannot delete the file ~S.~%C library error: ~S" : - "Cannot delete the directory ~S.~%C library error: ~S"; + "Cannot delete the directory ~S.~%C library error: ~S" : + "Cannot delete the file ~S.~%C library error: ~S"; cl_object c_error = _ecl_strerror(errno); si_signal_simple_error (6, @'file-error', /* condition */