 		<cfquery name="d" datasource="cf_dbuser">
 			select * from doi where upper(doi)='#ucase(doi)#'
 		</cfquery>
-		<cfif d.recordcount is 0>
+		<cfif d.recordcount is 0>
+			<cfif isdefined("session.roles") and session.roles contains "coldfusion_user">
+				<cfdump var=#cfcatch#>
+			</cfif>
 			<cfinclude template="/errors/404.cfm">
 		</cfif>
 		<cfif d.media_id gt 0>

			</cfif>
			---->
			<cfcatch>
				<cfdump var=#cfcatch#>
				<cfinclude template="/errors/404.cfm">
			</cfcatch>
		</cftry>

		<cfelseif d.collection_object_id gt 0>
			<cfset collection_object_id=d.collection_object_id>
			<cfinclude template="/SpecimenDetail.cfm">
		<cfelse>
			<cfif isdefined("session.roles") and session.roles contains "coldfusion_user">
				<cfdump var=#cfcatch#>
			</cfif>
			<cfinclude template="/errors/404.cfm">
		</cfif>
	<cfcatch>

		<cfif isdefined("session.roles") and session.roles contains "coldfusion_user">
			<cfdump var=#cfcatch#>
		</cfif>
		<cfinclude template="/errors/404.cfm">
	</cfcatch>
	</cftry>
