We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93c5b78 commit cfc05a8Copy full SHA for cfc05a8
1 file changed
apps/api/src/instrument-records/instrument-records.service.ts
@@ -192,7 +192,8 @@ export class InstrumentRecordsService {
192
if (Array.isArray(measureValue) && measureValue.length >= 1) {
193
const arrayResult = this.expandData(measureValue);
194
arrayResult.forEach((arrayEntry: ExpandDataType) => {
195
- if (!arrayEntry.success) throw new Error(arrayEntry.message);
+ if (!arrayEntry.success)
196
+ throw new Error(`exportRecords: ${instrument.internal.name}.${measureKey} — ${arrayEntry.message}`);
197
data.push({
198
groupId: record.subject.groupIds[0] ?? DEFAULT_GROUP_NAME,
199
instrumentEdition: instrument.internal.edition,
0 commit comments