diff --git a/frontend/submodule.restart.php b/frontend/submodule.restart.php index e6e38b9..a97f565 100644 --- a/frontend/submodule.restart.php +++ b/frontend/submodule.restart.php @@ -30,6 +30,11 @@ try $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Container restarted", "Your container was successfully restarted."); $sError .= $err->Render(); } +catch (ContainerSuspendedException $e) +{ + $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, "Container is suspended", "Your container could not be restarted, as it is currently suspended. If you believe this is in error, please file a support ticket."); + $sError .= $err->Render(); +} catch(ContainerStartException $e) { $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, "Container failed to start", "Your container could not be started. If this error persists, please file a support ticket."); diff --git a/frontend/submodule.start.php b/frontend/submodule.start.php index 3989b9a..104b9cf 100644 --- a/frontend/submodule.start.php +++ b/frontend/submodule.start.php @@ -23,7 +23,12 @@ if($sContainer->sCurrentStatus != CVM_STATUS_STARTED) $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Container started", "Your container was successfully started."); $sError .= $err->Render(); } - catch(ContainerStartException $e) + catch (ContainerSuspendedException $e) + { + $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, "Container is suspended", "Your container could not be started, as it is currently suspended. If you believe this is in error, please file a support ticket."); + $sError .= $err->Render(); + } + catch (ContainerStartException $e) { $err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, "Container failed to start", "Your container could not be started. If this error persists, please file a support ticket."); $sError .= $err->Render();