from collections import namedtuple


class PackageError(Exception):
    """Exception to be raised when user wants to exit on error."""


class RecipeError(Exception):
    """Exception to be raised when user wants to exit on error."""


class Error(namedtuple('Error', ['code', 'message'])):
    """Error class creates error codes to be shown to the user."""

    def __repr__(self):
        """Override namedtuple's __repr__ so that error codes are readable."""
        return '{} {}' .format(self.code, self.message)

from collections import namedtuple


class PackageError(Exception):
    """Exception to be raised when user wants to exit on error."""


class RecipeError(Exception):
    """Exception to be raised when user wants to exit on error."""


class Error(namedtuple('Error', ['file', 'line_number', 'code', 'message'])):
    """Error class creates error codes to be shown to the user."""

    def __repr__(self):
        """Override namedtuple's __repr__ so that error codes are readable."""
        return '{}:{}: {} {}' .format(self.file, self.line_number, self.code, self.message)

--- 
+++ 
@@ -9,9 +9,9 @@
     """Exception to be raised when user wants to exit on error."""
 
 
-class Error(namedtuple('Error', ['file', 'line_number', 'code', 'message'])):
+class Error(namedtuple('Error', ['code', 'message'])):
     """Error class creates error codes to be shown to the user."""
 
     def __repr__(self):
         """Override namedtuple's __repr__ so that error codes are readable."""
-        return '{}:{}: {} {}' .format(self.file, self.line_number, self.code, self.message)
+        return '{} {}' .format(self.code, self.message)
Remove file and line_number from Error class (may add at a later date)
