Index: openacs-4/packages/photo-album/sql/postgresql/pl-pgsql.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/sql/postgresql/pl-pgsql.sql,v diff -u -r1.4 -r1.4.8.1 --- openacs-4/packages/photo-album/sql/postgresql/pl-pgsql.sql 18 Jun 2003 12:11:17 -0000 1.4 +++ openacs-4/packages/photo-album/sql/postgresql/pl-pgsql.sql 4 Dec 2006 23:31:41 -0000 1.4.8.1 @@ -252,9 +252,7 @@ where parent_id = v_album_id; if v_num_children > 0 then - raise_application_error(-20000, - ''The specified album '' || album_id || '' still contains photos. - An album must be empty before it can be deleted.''); + raise exception ''The specified album % still contains photos. An album must be empty before it can be deleted.'', album_id; end if; -- content_item.delete takes care of all revision