Context
- Relocated the hooks.onExit call to a location where it can still influence output.
This commit is contained in:
@@ -296,6 +296,7 @@ int Context::run ()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
rc = dispatch (output);
|
rc = dispatch (output);
|
||||||
|
hooks.onExit ();
|
||||||
|
|
||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
s << "Perf "
|
s << "Perf "
|
||||||
@@ -385,9 +386,7 @@ int Context::run ()
|
|||||||
std::cerr << colorizeError (*e) << "\n";
|
std::cerr << colorizeError (*e) << "\n";
|
||||||
else
|
else
|
||||||
std::cerr << *e << "\n";
|
std::cerr << *e << "\n";
|
||||||
/*
|
|
||||||
hooks.trigger ("on-exit");
|
|
||||||
*/
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user