Skip to content

Commit

Permalink
hobofields migration generator -- fix to error message for invalid fi…
Browse files Browse the repository at this point in the history
…eld types
  • Loading branch information
tslocke committed Apr 24, 2008
1 parent f178330 commit 2544345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -42,7 +42,7 @@ def manifest
end
end
rescue HoboFields::FieldSpec::UnknownSqlTypeError => e
puts "Invalid field type '#{e.message[2]}' for #{e.message[0]}.#{e.message[1]}"
puts "Invalid field type: #{e}"
record {|m| }
end

Expand Down
2 changes: 1 addition & 1 deletion hobofields/lib/hobo_fields/field_spec.rb
Expand Up @@ -21,7 +21,7 @@ def sql_type
type
else
field_class = HoboFields.to_class(type)
field_class && field_class::COLUMN_TYPE or raise UnknownSqlTypeError, "#{model}.#{name}::#{type}"
field_class && field_class::COLUMN_TYPE or raise UnknownSqlTypeError, "#{type.inspect} for #{model}.#{name}"
end
end
end
Expand Down

0 comments on commit 2544345

Please sign in to comment.