Skip to content

Commit

Permalink
Merge branch 'object-system'
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Sep 6, 2009
2 parents 91b91ad + bf90de6 commit def1385
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion runtime/primitives/syntax.rb
Expand Up @@ -77,7 +77,7 @@ def init_primitive_syntax
body = atoms[2..-1]
GenericMethod.new(scope, tuple, generic_word_name, body)
else
raise Exception.new("Unknown tuple: #{tuple}")
raise Exception.new("Unknown tuple: #{atoms.first.text_value}")
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions runtime/word.rb
Expand Up @@ -53,7 +53,7 @@ def call(scope)
if impl
impl.call(scope)
else
raise NoMethodError.new("No generic method implementation for #{obj.tuple.name}.")
raise NoMethodError.new("No generic method implementation of '#{@name}' for #{obj.tuple.name}.")
end
else
raise Exception.new("Only can call generic method '#{@name}' for tuple instances.")
Expand Down Expand Up @@ -88,7 +88,7 @@ def initialize(scope, tuple, generic_word_name, body)
if generic_word
generic_word.add_implementation(self)
else
raise Exception.new("Generic word not defined: #{generic_word_name}.")
raise Exception.new("Generic word not defined: '#{generic_word_name}'.")
end
end

Expand Down

0 comments on commit def1385

Please sign in to comment.