From 1f07d40f0447460680974dcfa38feb96ef95c4e0 Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Thu, 29 Oct 2015 00:21:31 +0100 Subject: [PATCH] Make error messages more concise and to the point. --- SwiftShell/Command.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SwiftShell/Command.swift b/SwiftShell/Command.swift index 491f864..f9a98de 100644 --- a/SwiftShell/Command.swift +++ b/SwiftShell/Command.swift @@ -31,7 +31,7 @@ Print error to standard error and halt execution. exit(errormessage: shellerror, errorcode: shellerror.errorcode, file: file, line: line) } else { let nserror = error as NSError - exit(errormessage: nserror, errorcode: Int32(nserror.code), file: file, line: line) + exit(errormessage: nserror.localizedDescription, errorcode: Int32(nserror.code), file: file, line: line) } }