@hitsoft/uretim-yonetimi 1.0.33 → 1.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2300,13 +2300,17 @@ class HitBoilerYMProductWasteComponent {
2300
2300
  this.isEmriBarkoduGecerliMi = true;
2301
2301
  }
2302
2302
  else {
2303
- this.confirmation.error('', 'YM ürün bilgileri alınamadı.', this.options).subscribe(() => {
2303
+ const message = responseYM?.errors?.length
2304
+ ? responseYM.errors.join('\n')
2305
+ : 'YM ürün bilgileri alınamadı.';
2306
+ this.confirmation.error('', message, this.options).subscribe(() => {
2304
2307
  this.clearAll();
2305
2308
  });
2306
2309
  }
2307
2310
  },
2308
- error: () => {
2309
- this.confirmation.error('', 'YM ürün bilgileri alınamadı.', this.options).subscribe(() => {
2311
+ error: (err) => {
2312
+ const message = err?.error?.error?.message || 'YM ürün bilgileri alınamadı.';
2313
+ this.confirmation.error('', message, this.options).subscribe(() => {
2310
2314
  this.clearAll();
2311
2315
  });
2312
2316
  },