Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Raise an ArgumentError

Oliver Günther87dc4bda9622
diff --git a/lib_static/open_project/migration_statement_timeout/manager.rb b/lib_static/open_project/migration_statement_timeout/manager.rb
index 007eb866ed2..98010514343 100644
--- a/lib_static/open_project/migration_statement_timeout/manager.rb
+++ b/lib_static/open_project/migration_statement_timeout/manager.rb
@@ -93,7 +93,7 @@ module MigrationStatementTimeout
when /\A\d+h\z/
timeout.to_i * 1000 * 60 * 60
else
- raise "Unrecognized statement timeout duration #{timeout.inspect}"
+ raise ArgumentError, "Unrecognized statement timeout duration #{timeout.inspect}"
end
end
end