Improve error messages
This commit is contained in:
parent
6e93301542
commit
fb3a43c216
15 changed files with 156 additions and 32 deletions
|
@ -96,3 +96,10 @@ export function enforceLen(str: string, len: number): string {
|
|||
}
|
||||
return str
|
||||
}
|
||||
|
||||
export function cleanError(str: string): string {
|
||||
if (str.startsWith('Error: ')) {
|
||||
return str.slice('Error: '.length)
|
||||
}
|
||||
return str
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@ export const colors = {
|
|||
|
||||
export const gradients = {
|
||||
primary: {start: '#db00ff', end: '#ff007a'},
|
||||
error: {start: '#ff007a', end: '#ed0d78'},
|
||||
purple: {start: colors.pink3, end: colors.purple3},
|
||||
blue: {start: colors.purple3, end: colors.blue3},
|
||||
green: {start: colors.blue3, end: colors.green3},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue