Compare commits
No commits in common. "f289afd8bc47f6eae9f12f765322b2db974ba918" and "c2fdfeed4f5fc454b02bc4b198965889c173bbaa" have entirely different histories.
f289afd8bc
...
c2fdfeed4f
@ -24,7 +24,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@odit/class-validator-jsonschema": "2.1.1",
|
"@odit/class-validator-jsonschema": "2.1.1",
|
||||||
"argon2": "^0.27.1",
|
"argon2": "^0.27.1",
|
||||||
"axios": "^0.21.1",
|
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"class-transformer": "0.3.1",
|
"class-transformer": "0.3.1",
|
||||||
"class-validator": "^0.13.1",
|
"class-validator": "^0.13.1",
|
||||||
@ -58,6 +57,7 @@
|
|||||||
"@types/jsonwebtoken": "^8.5.0",
|
"@types/jsonwebtoken": "^8.5.0",
|
||||||
"@types/node": "^14.14.22",
|
"@types/node": "^14.14.22",
|
||||||
"@types/uuid": "^8.3.0",
|
"@types/uuid": "^8.3.0",
|
||||||
|
"axios": "^0.21.1",
|
||||||
"cp-cli": "^2.0.0",
|
"cp-cli": "^2.0.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"nodemon": "^2.0.7",
|
"nodemon": "^2.0.7",
|
||||||
|
@ -1,17 +1,12 @@
|
|||||||
import { IsString } from 'class-validator';
|
import { IsString } from 'class-validator'
|
||||||
import { InternalServerError } from 'routing-controllers';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when a permission couldn't be found.
|
* Error to throw when a permission couldn't be found.
|
||||||
*/
|
*/
|
||||||
export class MailSendingError extends InternalServerError {
|
export class MailServerConfigError extends Error {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "MailSendingError"
|
name = "MailServerConfigError"
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "We had a problem sending the mail!"
|
message = "The SMTP server you provided couldn't be reached!"
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super("We had a problem sending the mail!");
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user