1
0
Prechádzať zdrojové kódy

FileServer: enhance warning when no index.html file can be found

Manfred Kröhnert 11 rokov pred
rodič
commit
163f4d0c74
3 zmenil súbory, kde vykonal 292 pridanie a 346 odobranie
  1. 131 167
      cli/js/AmberCli.js
  2. 3 1
      cli/st/AmberCli.st
  3. 158 178
      cli/support/amber-cli.js

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 131 - 167
cli/js/AmberCli.js


+ 3 - 1
cli/st/AmberCli.st

@@ -169,7 +169,9 @@ username: aUsername
 
 checkDirectoryLayout
 	(fs existsSync: self basePath, 'index.html') ifFalse: [
-		console warn: 'Warning: project directory does not contain index.html'].
+		console warn: 'Warning: project directory does not contain index.html.'.
+		console warn: '    You can specify its location with --fallback-page.'.
+		console warn: '    Or you can specify the directory to serve with --base-path.'.].
 	(fs existsSync: self basePath, 'st') ifFalse: [
 		console warn: 'Warning: project directory is missing an "st" directory'].
 	(fs existsSync: self basePath, 'js') ifFalse: [

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 158 - 178
cli/support/amber-cli.js


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov