Index: openacs-4/contrib/obsolete-packages/acs-workflow/sql/postgresql/workflow-case-package-body.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/obsolete-packages/acs-workflow/sql/postgresql/workflow-case-package-body.sql,v
diff -u -N -r1.7 -r1.8
--- openacs-4/contrib/obsolete-packages/acs-workflow/sql/postgresql/workflow-case-package-body.sql	17 May 2003 10:08:16 -0000	1.7
+++ openacs-4/contrib/obsolete-packages/acs-workflow/sql/postgresql/workflow-case-package-body.sql	19 Apr 2009 01:59:08 -0000	1.8
@@ -2062,8 +2062,10 @@
     transition_key = get_task_id__transition_key;
 
   if not found then
-    raise error ''Case % has no transition with key %'', get_task_id__case_id, get_task_id__transition_key;
+    raise exception ''Case % has no transition with key %'', get_task_id__case_id, get_task_id__transition_key;
+  end if;
 
-  return v_task_id;end;' language 'plpgsql';
+  return v_task_id;
+end;' language 'plpgsql';
 
 
