     current_name = current_layer['name']
     current_files = current_layer['files']
     if not current_files? or not current_name? or current_files.length == 0
+        console.log "Error loading project '#{current_name}', continuing..."
         continue
 
     # Connection to the mbtiles db


    format = project['format'][zoom]
    if req.params.format != format
        res.send(404)
        return

    db = project['database'][zoom]

        client.query "SELECT value FROM metadata WHERE name='format'", (error, result) ->
            if error != null
                console.log error
                return

            if result.rows.length > 0
                row = result.rows[0]
