summaryrefslogtreecommitdiff
path: root/src/Script/Output.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Script/Output.php')
-rw-r--r--src/Script/Output.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Script/Output.php b/src/Script/Output.php
index 8f7a689..e61cff8 100644
--- a/src/Script/Output.php
+++ b/src/Script/Output.php
@@ -3,6 +3,7 @@
namespace App\Script;
use App\Model\Collection;
+use Exception;
class Output
{
@@ -20,4 +21,9 @@ class Output
echo implode("\n\n", $out) . "\n";
}
+
+ public function printException(Exception $e)
+ {
+ echo "An unexpected exception occured:\n" . $e->getMessage() . "\n";
+ }
}