diff --git a/src/Databases/Properties/PropertyFactory.php b/src/Databases/Properties/PropertyFactory.php index 5ac23a4f..1bda292a 100644 --- a/src/Databases/Properties/PropertyFactory.php +++ b/src/Databases/Properties/PropertyFactory.php @@ -32,7 +32,7 @@ public static function fromArray(array $array): PropertyInterface PropertyType::Status => Status::fromArray($array), PropertyType::Title => Title::fromArray($array), PropertyType::Url => Url::fromArray($array), - default => throw new Exception("Invalid property type."), + default => throw new Exception("Invalid property type: '{$array['type']}'"), }; } }