From f78e270591687fd4e536dd1bfae1f00b8b79ae6b Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Sat, 22 Oct 2016 15:50:10 +0200 Subject: [PATCH] Slightly improved error messages --- serial.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serial.go b/serial.go index 96a9b09..7b82518 100644 --- a/serial.go +++ b/serial.go @@ -112,9 +112,9 @@ func (e PortError) EncodedErrorString() string { case PermissionDenied: return "Permission denied" case InvalidSpeed: - return "Invalid port speed" + return "Port speed invalid or not supported" case InvalidDataBits: - return "Invalid port data bits" + return "Port data bits invalid or not supported" case InvalidParity: return "Port parity invalid or not supported" case ErrorEnumeratingPorts: