Commit 425a2a18 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Upload: split error message in user/support.

parent 013d7f61
......@@ -1249,7 +1249,9 @@ class Support {
if ($overwrite) {
HelperFile::unlink($pathFileName);
} else {
throw new UserFormException('Copy upload failed - file already exist: ' . $pathFileName, ERROR_IO_FILE_EXIST);
throw new UserFormException(json_encode(
[ERROR_MESSAGE_TO_USER => 'Copy upload failed - file already exist',
ERROR_MESSAGE_SUPPORT => 'File: ' .$pathFileName]), ERROR_IO_FILE_EXIST);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment