Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Bugfix: fixed issue where long errors were never output
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankruijter committed Aug 30, 2020
1 parent 4a0ca92 commit b315049
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.0.2 - 2020-08-30
### Fixed
- Issue with big errors, which never output.

## 2.0.1 - 2020-08-16
### Fixed
- Issue where verbose output worked inverted.
Expand Down Expand Up @@ -39,7 +43,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Created the initial implementation of the command package.

# Versions
- [2.0.1 > Unreleased](https://github.com/ulrack/command/compare/2.0.1...HEAD)
- [2.0.2 > Unreleased](https://github.com/ulrack/command/compare/2.0.2...HEAD)
- [2.0.1 > 2.0.2](https://github.com/ulrack/command/compare/2.0.1...2.0.2)
- [2.0.0 > 2.0.1](https://github.com/ulrack/command/compare/2.0.0...2.0.1)
- [1.0.5 > 2.0.0](https://github.com/ulrack/command/compare/1.0.5...2.0.0)
- [1.0.4 > 1.0.5](https://github.com/ulrack/command/compare/1.0.4...1.0.5)
Expand Down
4 changes: 2 additions & 2 deletions src/Component/Router/CommandRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function __invoke(InputInterface $input): int
);
} catch (Throwable $exception) {
$this->errorElementFactory->createBlock(
$exception->getMessage(),
substr($exception->getMessage(), 0, 1000),
'error-block'
)->render();

Expand All @@ -182,7 +182,7 @@ public function __invoke(InputInterface $input): int
$trace = $exception->getTraceAsString();
$i = 0;
$this->output->writeLine(
'Previouse exceptions:',
'Previous exceptions:',
'text',
true
);
Expand Down

0 comments on commit b315049

Please sign in to comment.