display error when cant build something
[browser-rts.git] / src / repository / city.ts
index 272ee3b960a410c018d07cc723b5620f8922da3c..a17d1d9696a0510ba62f1b6023c383a988e33b9a 100644 (file)
@@ -206,7 +206,7 @@ where l.sector_id = ?`, [sector_id]);
         // validate that they have enough empty construction queues
         const concurrentConstruction = await this.buildQueue.list(city.owner);
         if(concurrentConstruction.length >= city.max_construction_queue) {
-          throw new InsufficientResourceError('Training queues', concurrentConstruction.length + 1, city.max_construction_queue);
+          throw new InsufficientResourceError('Construction queues', concurrentConstruction.length + 1, city.max_construction_queue);
         }
 
         city.usedSpace += (building.land * amount);