diff --git a/src/pystencils/backend/symbols.py b/src/pystencils/backend/symbols.py
index 9b0d815460a9a7776ac203d4e8931faa32337fc1..065a3c8dc0f56a5387d1b5c550db49b175399435 100644
--- a/src/pystencils/backend/symbols.py
+++ b/src/pystencils/backend/symbols.py
@@ -42,7 +42,9 @@ class PsSymbol:
 
     def get_dtype(self) -> PsType:
         if self._dtype is None:
-            raise PsInternalCompilerError("Symbol had no type assigned yet")
+            raise PsInternalCompilerError(
+                f"Symbol {self.name} had no type assigned yet"
+            )
         return self._dtype
 
     def __eq__(self, other: object) -> bool:
diff --git a/src/pystencils/types/basic_types.py b/src/pystencils/types/basic_types.py
index 7565ea9a5532ccbb0c394da46520054bdeb71f95..b83b6d7d67dfbc0fab0c873ca1fae2a55cc8517d 100644
--- a/src/pystencils/types/basic_types.py
+++ b/src/pystencils/types/basic_types.py
@@ -655,7 +655,7 @@ class PsIeeeFloatType(PsScalarType):
     def __init__(self, width: int, const: bool = False):
         if width not in self.SUPPORTED_WIDTHS:
             raise ValueError(
-                f"Invalid integer width; must be one of {self.SUPPORTED_WIDTHS}."
+                f"Invalid integer width {width}; must be one of {self.SUPPORTED_WIDTHS}."
             )
 
         super().__init__(const)