generateError function

String generateError(
  1. Exception e,
  2. String? error
)

Implementation

String generateError(Exception e, String? error) {
  final errorOutput = error == null ? '' : ' \n$error';
  return '\n✗ ERROR: ${(e).runtimeType.toString()}$errorOutput';
}