Skip to main content

parse_migration_failed_line

Function parse_migration_failed_line 

Source
pub fn parse_migration_failed_line(line: &str) -> Option<String>
Expand description

Parse a stderr line. Returns the error message if this is a MIGRATION_FAILED_PREFIX line, None for any other line. Tolerates a missing error: field and never returns an empty message, so callers can put the result straight into a user-facing dialog.