compiler/vlib: add error for no new vars in loop ("_,_") & remove "." from errors

This commit is contained in:
joe-conigliaro 2019-09-26 00:59:50 +10:00 committed by Alexander Medvednikov
parent a124d1f0eb
commit d4bae356ba
10 changed files with 25 additions and 22 deletions

View file

@ -154,7 +154,7 @@ fn (am mut AssetManager) include(asset_type string, combine bool) string {
// fn (am mut AssetManager) add(asset_type, file string) ?bool {
fn (am mut AssetManager) add(asset_type, file string) bool {
if !os.file_exists(file) {
// return error('vweb.assets: cannot add asset $file, it does not exist.')
// return error('vweb.assets: cannot add asset $file, it does not exist')
return false
}
asset := Asset{