Print the device name in error messages on Windows.

Use a similar error message as on Unix.