Log some errors for #960

This commit is contained in:
James Cole
2017-10-27 12:59:43 +02:00
parent 27d533dd5b
commit a5dd334b71
2 changed files with 9 additions and 0 deletions

View File

@@ -345,6 +345,7 @@ class SingleController extends Controller
$this->attachments->saveAttachmentsForModel($journal, $files);
// store the journal only, flash the rest.
Log::debug(sprintf('Count of error messages is %d', $this->attachments->getErrors()->count()));
if (count($this->attachments->getErrors()->get('attachments')) > 0) {
Session::flash('error', $this->attachments->getErrors()->get('attachments'));
}