Update shell/store/type-map.utils.ts

Co-authored-by: Richard Cox <18697775+richard-cox@users.noreply.github.com>
This commit is contained in:
Francesco Torchia 2025-02-24 12:28:11 +01:00
parent 3471b49832
commit 2a3e9ebc16
No known key found for this signature in database
GPG Key ID: E6D011B7415D4393
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ export function createHeaders(
*/
export function headerFromSchemaColString(colName: string, schema: Schema, rootGetters: VuexStoreGetters, pagination: boolean, ageColumn: TableColumn): TableColumn {
if (!schema) {
throw new Error(`Schema is null`);
throw new Error(`Unable to create header for column '${colName}' from schema: schema is missing`);
}
const col = schema.attributes.columns.find((c) => c.name === colName);