Correctly retrieve a device/file name from the command line, report the error string when we can't open it
Remove unnecessary open curly brace that isn't closed