Skip to content

Commit

Permalink
Improve PropertyFactory Exception message (#141)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Firmenich <[email protected]>
  • Loading branch information
FFirmenich and florianfirmenich authored Jan 9, 2023
1 parent be49461 commit b0a54b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Databases/Properties/PropertyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']}'"),
};
}
}

0 comments on commit b0a54b3

Please sign in to comment.