mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
compiler/vlib: add error for no new vars in loop ("_,_") & remove "." from errors
This commit is contained in:
parent
a124d1f0eb
commit
d4bae356ba
10 changed files with 25 additions and 22 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue