This commit is contained in:
Igor Sysoev 2008-01-03 21:29:01 +00:00
parent dcfcf08842
commit 18ccec6eb6

View file

@ -759,10 +759,15 @@ overwrite_done:
/* destination exists */ /* destination exists */
if (ngx_is_dir(&fi) && !slash) { if (ngx_is_dir(&fi) && !slash) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
"\"%V\" could not be %Ved to collection \"%V\"",
&r->uri, &r->method_name, &dest->value);
return NGX_HTTP_CONFLICT; return NGX_HTTP_CONFLICT;
} }
if (!overwrite) { if (!overwrite) {
ngx_log_error(NGX_LOG_ERR, r->connection->log, NGX_EEXIST,
"\"%s\" could not be created", copy.path.data);
return NGX_HTTP_PRECONDITION_FAILED; return NGX_HTTP_PRECONDITION_FAILED;
} }