Skip to content

Commit

Permalink
Cleanup to RestController
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwexler committed Dec 2, 2024
1 parent f106c89 commit 56ba4af
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions grails-app/controllers/io/xh/hoist/RestController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ abstract class RestController extends BaseController {
successCount++
} catch (Exception e) {
failCount++
if (e instanceof ValidationException) {
e = new io.xh.hoist.exception.ValidationException(e)
logDebug("Validation exception updating ${obj}", e)
} else {
logError("Unexpected exception updating ${obj}", e)
}
xhExceptionHandler.handleException(
exception: e,
logMessage: "Exception updating ${id}",
logTo: this
)
}
}

Expand Down

0 comments on commit 56ba4af

Please sign in to comment.