Add start/restart errors for terminated state

feature/node-rewrite
Sven Slootweg 13 years ago
parent c605752f66
commit 3886184180

@ -164,6 +164,8 @@ error-start-success-title; Container started
error-start-success-text; Your container was successfully started. error-start-success-text; Your container was successfully started.
error-start-suspended-title; Container is suspended error-start-suspended-title; Container is suspended
error-start-suspended-text; Your container could not be started, as it is currently suspended. If you believe this is in error, please file a support ticket. error-start-suspended-text; Your container could not be started, as it is currently suspended. If you believe this is in error, please file a support ticket.
error-start-terminated-title; Container is terminated
error-start-terminated-text; Your container could not be started, as it is terminated.
error-start-failed-title; Container failed to start error-start-failed-title; Container failed to start
error-start-failed-text; Your container could not be started. If this error persists, please file a support ticket. error-start-failed-text; Your container could not be started. If this error persists, please file a support ticket.
error-start-running-title; Container can't be started error-start-running-title; Container can't be started
@ -212,5 +214,7 @@ error-restart-success-title; Container restarted
error-restart-success-text; Your container was successfully restarted. error-restart-success-text; Your container was successfully restarted.
error-restart-suspended-title; Container is suspended error-restart-suspended-title; Container is suspended
error-restart-suspended-text; Your container could not be restarted, as it is currently suspended. If you believe this is in error, please file a support ticket. error-restart-suspended-text; Your container could not be restarted, as it is currently suspended. If you believe this is in error, please file a support ticket.
error-restart-suspended-title; Container is terminated
error-restart-suspended-text; Your container could not be restarted, as it is terminated.
error-restart-start-title; Container failed to start error-restart-start-title; Container failed to start
error-restart-start-text; Your container could not be started. If this error persists, please file a support ticket. error-restart-start-text; Your container could not be started. If this error persists, please file a support ticket.

@ -35,6 +35,11 @@ catch (ContainerSuspendedException $e)
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-restart-suspended-title'], $locale->strings['error-restart-suspended-text']); $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-restart-suspended-title'], $locale->strings['error-restart-suspended-text']);
$sError .= $err->Render(); $sError .= $err->Render();
} }
catch (ContainerTerminatedException $e)
{
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-restart-terminated-title'], $locale->strings['error-restart-terminated-text']);
$sError .= $err->Render();
}
catch(ContainerStartException $e) catch(ContainerStartException $e)
{ {
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-restart-start-title'], $locale->strings['error-restart-start-text']); $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-restart-start-title'], $locale->strings['error-restart-start-text']);

@ -28,6 +28,11 @@ if($sContainer->sCurrentStatus != CVM_STATUS_STARTED)
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-start-suspended-title'], $locale->strings['error-start-suspended-text']); $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-start-suspended-title'], $locale->strings['error-start-suspended-text']);
$sError .= $err->Render(); $sError .= $err->Render();
} }
catch (ContainerTerminatedException $e)
{
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-start-terminated-title'], $locale->strings['error-start-terminated-text']);
$sError .= $err->Render();
}
catch (ContainerStartException $e) catch (ContainerStartException $e)
{ {
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-start-failed-title'], $locale->strings['error-start-failed-text']); $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, $locale->strings['error-start-failed-title'], $locale->strings['error-start-failed-text']);

Loading…
Cancel
Save