diff options
-rw-r--r-- | global-functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/global-functions b/global-functions index 2e393cb..ad489a9 100644 --- a/global-functions +++ b/global-functions @@ -852,7 +852,11 @@ :if ([ :typeof $Migration ] = "str") do={ :if ([ $ValidateSyntax $Migration ] = true) do={ $LogPrintExit2 info $0 ("Applying migration for change " . $I . ": " . $Migration) false; - [ :parse $Migration ]; + :do { + [ :parse $Migration ]; + } on-error={ + $LogPrintExit2 warning $0 ("Migration code for change " . $I . " failed to run!") false; + } } else={ $LogPrintExit2 warning $0 ("Migration code for change " . $I . " failed syntax validation!") false; } |