summaryrefslogtreecommitdiffstats
path: root/idrop-web/grails-app/controllers/org/irods/mydrop/controller/ProfileController.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'idrop-web/grails-app/controllers/org/irods/mydrop/controller/ProfileController.groovy')
-rwxr-xr-xidrop-web/grails-app/controllers/org/irods/mydrop/controller/ProfileController.groovy9
1 files changed, 5 insertions, 4 deletions
diff --git a/idrop-web/grails-app/controllers/org/irods/mydrop/controller/ProfileController.groovy b/idrop-web/grails-app/controllers/org/irods/mydrop/controller/ProfileController.groovy
index 2bb2aef..39db3d9 100755
--- a/idrop-web/grails-app/controllers/org/irods/mydrop/controller/ProfileController.groovy
+++ b/idrop-web/grails-app/controllers/org/irods/mydrop/controller/ProfileController.groovy
@@ -101,8 +101,8 @@ class ProfileController {
userProfile = profileService.retrieveProfile(irodsAccount)
} catch (Exception e) {
log.error("error retrieving user profile", e)
- def message = message("message.cannot.create.profile")
- response.sendError(500, message)
+ flash.error = e.message
+ render(view:"index", model:[userProfile:profileCommand])
return
}
@@ -127,10 +127,11 @@ class ProfileController {
profileService.updateProfile(irodsAccount, userProfile)
} catch (Exception e) {
log.error("error updating user profile", e)
- def message = message("message.cannot.create.profile")
- response.sendError(500, message)
+ flash.error = e.message
+ render(view:"index", model:[userProfile:profileCommand])
return
}
+
log.info "updated"
flash.message = message(code:"message.update.successful")