Skip to content

Commit

Permalink
Merge pull request firecracker-microvm#236 from edigaryev/clarify-val…
Browse files Browse the repository at this point in the history
…idate-error

Clarify error message when host drive path is inaccessible
  • Loading branch information
kzys authored May 18, 2020
2 parents ba43a95 + fe7e262 commit 18c53a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (cfg *Config) Validate() error {
if BoolValue(drive.IsRootDevice) {
rootPath := StringValue(drive.PathOnHost)
if _, err := os.Stat(rootPath); err != nil {
return fmt.Errorf("failed to stat host path, %q: %v", rootPath, err)
return fmt.Errorf("failed to stat host drive path, %q: %v", rootPath, err)
}

break
Expand Down

0 comments on commit 18c53a9

Please sign in to comment.