[svn-genapp] r1709 - genappalpha/languages/html5/abaco

svn@...
 

Author: ehb
Date: Sun Sep 22 09:55:25 2019
New Revision: 1709

Log:
Add error message for configuration error condition

Modified:
genappalpha/languages/html5/abaco/abacolib.php

Modified: genappalpha/languages/html5/abaco/abacolib.php
==============================================================================
--- genappalpha/languages/html5/abaco/abacolib.php Tue Sep 17 14:11:04 2019 (r1708)
+++ genappalpha/languages/html5/abaco/abacolib.php Sun Sep 22 09:55:25 2019 (r1709)
@@ -56,6 +56,18 @@
exit();
}

+if ( "__dockerhub:user__" == "__" . "dockerhub:user__" ) {
+ $results->_message = [ "icon" => "toast.png",
+ "text" => "<p>Configuration information 'directives:dockerhub:user' not defined.</p>"
+ . "<p>This is a configuration error which should be forwarded to the site administrator.</p>"
+ . "<p>ABACO submission will not work this is fixed.</p>"
+ ];
+ $results->error = "Configuration missing 'directives:dockerhub:user'.";
+ $results->_status = 'failed';
+ echo json_encode( $results );
+ exit();
+}
+
function container_name( $menu, $mod ) {
global $dockerhub;
global $appname;

Join genapp-commits@groups.io to automatically receive all group messages.