diff --git a/commands/upload/upload.go b/commands/upload/upload.go index e329506f129..9ffe5ef98fb 100644 --- a/commands/upload/upload.go +++ b/commands/upload/upload.go @@ -397,7 +397,7 @@ func runTool(recipeID string, props *properties.Map, outStream, errStream io.Wri if strings.TrimSpace(recipe) == "" { return nil // Nothing to run } - if props.IsPropertyMissingInExpandPropsInString("serial.port", recipe) { + if props.IsPropertyMissingInExpandPropsInString("serial.port", recipe) || props.IsPropertyMissingInExpandPropsInString("serial.port.file", recipe) { return fmt.Errorf(tr("no upload port provided")) } cmdLine := props.ExpandPropsInString(recipe)