# Bug OP-4084 - Ruby 2.4 LocalJumpError: unexpected return

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-4084

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 7.2.2 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

We used a return statement in a block that’s actually forbidden by ruby, but the exception that should be thrown here wasn’t for a while.

https://bugs.ruby-lang.org/issues/13090  
https://community.openproject.com/topics/8134?r=8134\#message-8134
