Skip to content

Commit cfd13ef

Browse files
committed
Convert error into a warning
1 parent 80fb6c8 commit cfd13ef

File tree

1 file changed

+1
-1
lines changed
  • app/server/ruby/lib/sonicpi/lang

1 file changed

+1
-1
lines changed

app/server/ruby/lib/sonicpi/lang/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2752,7 +2752,7 @@ def define(name, &block)
27522752
end
27532753

27542754
if block.arity == 0 && name.to_s =~ /^[A-Z]/
2755-
raise ArgumentError, "Functions with no required parameters can't start with a capital letter."
2755+
__delayed_warning "Functions with no required parameters shouldn't start with a capital letter."
27562756
end
27572757

27582758
if already_defined

0 commit comments

Comments
 (0)