adds success message and extends error message

https://www.openproject.org/work_packages/14584