fixed issue #713

This commit is contained in:
Prashant Singh 2019-03-19 13:24:28 +05:30
parent 97da404216
commit 2b17cdb7fd
1 changed files with 5 additions and 1 deletions

View File

@ -153,7 +153,11 @@ class ChannelController extends Controller
} else {
Event::fire('core.channel.delete.before', $id);
$this->channel->delete($id);
try {
$this->channel->delete($id);
} catch(\Exception $e) {
session()->flash('warning', trans($e->getMessage()));
}
Event::fire('core.channel.delete.after', $id);