<mat-card appearance="outlined" class="error-messages mb-4" [hidden]="!errorList.length && !stacktrace">
    <mat-card-content>
        <ul class="error-messages" *ngIf="errorList.length">
            <li *ngFor="let error of errorList">
                {{ error }}
            </li>
        </ul>
        <pre class="error-messages m-2" *ngIf="stacktrace">{{ stacktrace }}</pre>
    </mat-card-content>
</mat-card>