Skip to content

Commit

Permalink
[Backport release-1.15] [c++] When a group has no type info, say its …
Browse files Browse the repository at this point in the history
…name (#3532)

* temp (#3530)

* Fix up C++20 -> 17 on `release-1.15` branch

* run make format with clang-format 18.1.3

* again ...

---------

Co-authored-by: John Kerl <[email protected]>
  • Loading branch information
github-actions[bot] and johnkerl authored Jan 7, 2025
1 parent 1c9e5ec commit abd38bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libtiledbsoma/src/soma/soma_object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <string>
#include <tiledb/tiledb>

#include "../utils/logger.h" // for fmt
#include "soma_array.h"
#include "soma_collection.h"
#include "soma_dataframe.h"
Expand Down Expand Up @@ -46,8 +47,8 @@ std::unique_ptr<SOMAObject> SOMAObject::open(
auto array_type = array_->type();

if (!array_type.has_value())
throw TileDBSOMAError(
"[SOMAObject::open] SOMAArray has no type info");
throw TileDBSOMAError(fmt::format(
"[SOMAObject::open] SOMAArray '{}' has no type info", uri));

std::transform(
array_type->begin(),
Expand All @@ -74,8 +75,8 @@ std::unique_ptr<SOMAObject> SOMAObject::open(
auto group_type = group_->type();

if (!group_type.has_value())
throw TileDBSOMAError(
"[SOMAObject::open] SOMAGroup has no type info");
throw TileDBSOMAError(fmt::format(
"[SOMAObject::open] SOMAGroup '{}' has no type info", uri));

std::transform(
group_type->begin(),
Expand Down

0 comments on commit abd38bb

Please sign in to comment.