mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-30 17:46:41 +08:00
16 lines
392 B
JavaScript
16 lines
392 B
JavaScript
import React from 'react';
|
|
import { NgIf } from './';
|
|
|
|
import "./error.scss";
|
|
|
|
export const Error = (props) => {
|
|
return (
|
|
<div className="component_error">
|
|
{props.err.message || "Oups something went wrong :/"}
|
|
<NgIf cond={props.err.trace !== undefined} className="trace">
|
|
{JSON.stringify(props.err.trace)}
|
|
</NgIf>
|
|
</div>
|
|
);
|
|
}
|