- npm added @japa/api-client, @japa/assert, @types/supertest
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s
Some checks failed
CI Pipeline / japa-tests (push) Failing after 1m13s
- webpack added opions['__VUE_PROD_HYDRATION_MISMATCH_DETAILS__'] = false; - bodyparser config replaced whitelistedMethods with allowedMethods - extended stardust_provider - adapted tests for adonisjs v6
This commit is contained in:
parent
296c8fd46e
commit
bee76f8d5b
23 changed files with 2014 additions and 165 deletions
|
@ -19,7 +19,24 @@ export class CannotDeleteFileException extends Exception {
|
|||
return error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unable to move file from source to destination
|
||||
*/
|
||||
export class CannotMoveFileException extends Exception {
|
||||
source: string;
|
||||
destination: string;
|
||||
original: any;
|
||||
static invoke(source: string, destination: string, original: any): CannotMoveFileException {
|
||||
const error = new this(`Cannot move file from "${source}" to "${destination}"`, {
|
||||
status: 500,
|
||||
code: 'E_CANNOT_MOVE_FILE',
|
||||
});
|
||||
error.source = source;
|
||||
error.destination = destination;
|
||||
error.original = original;
|
||||
return error;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Custom exception for when file metadata cannot be retrieved
|
||||
*/
|
||||
|
@ -71,3 +88,22 @@ export class CannotListDirectoryException extends Exception {
|
|||
return error;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unable to generate url for a file. The assets serving is disabled
|
||||
*/
|
||||
export class CannotGenerateUrlException extends Exception {
|
||||
location: string;
|
||||
static invoke(location: string, diskName: string): CannotGenerateUrlException {
|
||||
const error = new this(
|
||||
`Cannot generate URL for location "${location}". Make sure to set "serveFiles = true" for "${diskName}" disk`,
|
||||
{
|
||||
status: 500,
|
||||
code: 'E_CANNOT_GENERATE_URL',
|
||||
},
|
||||
);
|
||||
|
||||
error.location = location;
|
||||
return error;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue