Skip to content

Commit

Permalink
resolveError function updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron committed Sep 28, 2023
1 parent feeeb3c commit 41f70ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/aas-lib/src/lib/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import { HttpErrorResponse } from '@angular/common/http';
import { TranslateService } from '@ngx-translate/core';
import { ApplicationError, ErrorData, stringFormat } from 'common';
import { ApplicationError, ErrorData, convertToString, stringFormat } from 'common';
import { noop, toString } from 'lodash-es';

/**
Expand Down Expand Up @@ -70,8 +70,8 @@ export async function resolveError(error: unknown, translate: TranslateService):
noop();
}
}
} else if (typeof error.error === 'string') {
message = error.error;
} else {
message = convertToString(error.error);
}
}

Expand Down

0 comments on commit 41f70ba

Please sign in to comment.