Query Tags provide a way to debug queries in snowflake. Also I think additional custom exceptions around connections and logins could help with flows.