minor bug in Listing 2.5

15 views
Skip to first unread message

Jan Wuerthner

unread,
Aug 22, 2010, 10:59:39 AM8/22/10
to The Lift Book
Dear lift-book group,

there seems to be a minor mistake (I wouldn't really call it a bug) on
page 17 of the current version (master.pdf), Listing 2.5:

class: AddEntry, method: doTagsAndSubmit, line 2 and 3:

if (tags.trim.length == 0)
error("We're going to need at least one tag.")

I think, it should be "S.error" instead of "error" in order to display
the message inside the page (instead of an exception inside the
browser window...)

anyway - thanks for the excellent job you guys are doing on this book!

kind regards,
Jan


TylerWeir

unread,
Aug 22, 2010, 11:13:02 AM8/22/10
to The Lift Book
Given that we qualify "S.param" it looks like we should be qualifying
"S.error" as well.

Thanks Jan.

On Aug 22, 10:59 am, Jan Wuerthner <jan.wuerth...@googlemail.com>
wrote:

Derek Chen-Becker

unread,
Aug 23, 2010, 5:56:32 PM8/23/10
to the-li...@googlegroups.com
Fixed that, as well as some other minor edits I've been meaning to get to. Added docs on the OnDiskFileParamHolder and how to use it in file uploads, as well as a section on the "_id_>" binding operator. New master.pdf up on the group page.

Derek

--
You received this message because you are subscribed to the Google Groups "The Lift Book" group.
To post to this group, send email to the-li...@googlegroups.com.
To unsubscribe from this group, send email to the-lift-boo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/the-lift-book?hl=en.


Reply all
Reply to author
Forward
0 new messages