[vhffs-dev] [391] Backend: Adding some error messages in case of troubles |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 391
Author: gradator
Date: 2007-01-07 02:26:37 +0000 (Sun, 07 Jan 2007)
Log Message:
-----------
Backend: Adding some error messages in case of troubles
Modified Paths:
--------------
branches/vhffs_4.1/Makefile
branches/vhffs_4.1/vhffs-api/src/Vhffs/Functions.pm
Modified: branches/vhffs_4.1/Makefile
===================================================================
--- branches/vhffs_4.1/Makefile 2007-01-07 01:51:54 UTC (rev 390)
+++ branches/vhffs_4.1/Makefile 2007-01-07 02:26:37 UTC (rev 391)
@@ -270,7 +270,7 @@
install -m 755 vhffs-panel/cvs/*.pl $(PANELDIR)/cvs/
install -m 755 vhffs-panel/dns/*.pl $(PANELDIR)/dns/
install -m 755 vhffs-panel/group/*.pl $(PANELDIR)/group/
- install -m 755 vhffs-panel/js/*.js $(PANELDIR)/js/
+# install -m 755 vhffs-panel/js/*.js $(PANELDIR)/js/
install -m 755 vhffs-panel/help/*.html $(PANELDIR)/help/
install -m 755 vhffs-panel/largefile/*.pl $(PANELDIR)/largefile/
install -m 755 vhffs-panel/repository/*.pl $(PANELDIR)/repository/
Modified: branches/vhffs_4.1/vhffs-api/src/Vhffs/Functions.pm
===================================================================
--- branches/vhffs_4.1/vhffs-api/src/Vhffs/Functions.pm 2007-01-07 01:51:54 UTC (rev 390)
+++ branches/vhffs_4.1/vhffs-api/src/Vhffs/Functions.pm 2007-01-07 02:26:37 UTC (rev 391)
@@ -243,6 +243,11 @@
($backend_config) = @_;
+ if( ! defined $backend_config )
+ {
+ print "Oops!: I wonder if I am blind but I cannot find the backend area in the vhffs configuration file :/, could you help me ?\n";
+ exit -1;
+ }
#Default port;
@@ -262,7 +267,7 @@
else
{
- print "the backend you specify in your config file is not supported in Vhffs";
+ print "Oops!: The backend you specify in your config file is not supported in Vhffs\n";
exit -1;
}
}