Index: openacs-4/packages/dotlrn-homework/www/dotlrn-homework-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/dotlrn-homework-portlet.tcl,v diff -u -r1.2.12.1 -r1.2.12.2 --- openacs-4/packages/dotlrn-homework/www/dotlrn-homework-portlet.tcl 18 Aug 2014 21:53:42 -0000 1.2.12.1 +++ openacs-4/packages/dotlrn-homework/www/dotlrn-homework-portlet.tcl 10 Sep 2014 08:17:28 -0000 1.2.12.2 @@ -21,13 +21,13 @@ if {$n_folders != 1} { # something went wrong, we can't have more than one folder here - ad_return -error + return -code error "can't have more than one folder" } set folder_id [lindex $list_of_folder_ids 0] # Make sure our visitor can read the folder. if { ![permission::permission_p -object_id $folder_id -privilege "read"] } { - ad_return -error + return -code error "visitor can't read folder" } # No need to do any more work if the shade's pulled up