summaryrefslogtreecommitdiffstats
path: root/src/main/webapp/models/Host.cfc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/models/Host.cfc')
-rw-r--r--src/main/webapp/models/Host.cfc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/webapp/models/Host.cfc b/src/main/webapp/models/Host.cfc
index 22f9b88..a2f226c 100644
--- a/src/main/webapp/models/Host.cfc
+++ b/src/main/webapp/models/Host.cfc
@@ -22,9 +22,11 @@
<cfquery datasource="#this.cf_dsn#">#PreserveSingleQuotes(statement)#</cfquery>
</cfloop>
<cfcatch type="any">
- <cfset this.dropDatabase(arguments.databaseName)>
+ <cftry><cfset this.dropDatabase(arguments.databaseName)><cfcatch type="any"></cfcatch></cftry>
<cfif arguments.firstAttempt>
<cfset this.initializeDatabase(arguments.databaseName, false)>
+ <cfelse>
+ <cfrethrow>
</cfif>
</cfcatch>
</cftry>