phongdt:header footer
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import { H3Error} from 'h3'
|
||||
|
||||
export function handleError(error: any){
|
||||
const h3Error = new H3Error('')
|
||||
|
||||
h3Error.statusCode = error.statusCode||500
|
||||
h3Error.statusMessage = error.statusMessage||'Internal Server Error'
|
||||
h3Error.data = error.data
|
||||
|
||||
throw createError(h3Error)
|
||||
}
|
||||
Reference in New Issue
Block a user