removes reliance on useAsTitle
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
const APIError = require('./APIError');
|
||||
|
||||
class MissingUseAsTitle extends APIError {
|
||||
constructor(collection) {
|
||||
super(`${collection.labels.singular} collection is missing a useAsTitle property.`);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = MissingUseAsTitle;
|
||||
@@ -4,7 +4,6 @@ const DuplicateCollection = require('./DuplicateCollection');
|
||||
const DuplicateGlobal = require('./DuplicateGlobal');
|
||||
const MissingCollectionLabel = require('./MissingCollectionLabel');
|
||||
const MissingGlobalLabel = require('./MissingGlobalLabel');
|
||||
const MissingUseAsTitle = require('./MissingUseAsTitle');
|
||||
const NotFound = require('./NotFound');
|
||||
const Forbidden = require('./Forbidden');
|
||||
const ValidationError = require('./ValidationError');
|
||||
@@ -17,7 +16,6 @@ module.exports = {
|
||||
DuplicateGlobal,
|
||||
MissingCollectionLabel,
|
||||
MissingGlobalLabel,
|
||||
MissingUseAsTitle,
|
||||
NotFound,
|
||||
Forbidden,
|
||||
ValidationError,
|
||||
|
||||
Reference in New Issue
Block a user