mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
move errors
This commit is contained in:
19
website/common/script/errors/commonErrorMessages.js
Normal file
19
website/common/script/errors/commonErrorMessages.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// When this file grows, it can be split into multiple ones.
|
||||
export default {
|
||||
invalidAttribute: '"<%= attr %>" is not a valid Stat.',
|
||||
|
||||
statsObjectRequired: '"stats" object is required',
|
||||
|
||||
missingTypeParam: '"req.params.type" is required.',
|
||||
missingKeyParam: '"req.params.key" is required.',
|
||||
itemNotFound: 'Item "<%= key %>" not found.',
|
||||
questNotFound: 'Quest "<%= key %>" not found.',
|
||||
spellNotFound: 'Skill "<%= spellId %>" not found.',
|
||||
invalidQuantity: 'Quantity to purchase must be a positive whole number.',
|
||||
invalidTypeEquip: '"type" must be one of "equipped", "pet", "mount", "costume"',
|
||||
missingPetFoodFeed: '"pet" and "food" are required parameters.',
|
||||
missingEggHatchingPotion: '"egg" and "hatchingPotion" are required parameters.',
|
||||
|
||||
invalidPetName: 'Invalid pet name supplied.',
|
||||
invalidFoodName: 'Invalid food name supplied.',
|
||||
};
|
||||
Reference in New Issue
Block a user