myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2317] trunk/app/views/workflows/show.rhtml: adde


From: noreply
Subject: [myexperiment-hackers] [2317] trunk/app/views/workflows/show.rhtml: added an exception check when working out the run options of a workflow
Date: Mon, 18 Jan 2010 08:59:35 -0500 (EST)

Revision
2317
Author
dgc
Date
2010-01-18 08:59:35 -0500 (Mon, 18 Jan 2010)

Log Message

added an exception check when working out the run options of a workflow

Modified Paths

Diff

Modified: trunk/app/views/workflows/show.rhtml (2316 => 2317)


--- trunk/app/views/workflows/show.rhtml	2010-01-18 13:36:19 UTC (rev 2316)
+++ trunk/app/views/workflows/show.rhtml	2010-01-18 13:59:35 UTC (rev 2317)
@@ -233,7 +233,13 @@
 			</h3>
 				
 			<% if @authorised_to_download %>
-				<%= render :partial => "workflows/#{get_type_dir(@workflow)}/run_options" -%>				
+        <% begin %>
+          <%= render :partial => "workflows/#{get_type_dir(@workflow)}/run_options" -%>				
+        <% rescue %>
+          <p class="none_text">
+            There was a problem when determining the run options of this workflow.
+          </p>
+        <% end %>
 			<% else %>
 				<p class="none_text">
 					You do not have permission to run this workflow

reply via email to

[Prev in Thread] Current Thread [Next in Thread]