rd
rd
Explore posts from servers
NNuxt
Created by rd on 7/31/2023 in #❓・help
Client side error handling
And of course it's right there in the docs... fatal: true Solved with:
if (!product) {
throw createError({
statusCode: 404,
statusMessage: 'Product not found',
fatal: true,
});
}
if (!product) {
throw createError({
statusCode: 404,
statusMessage: 'Product not found',
fatal: true,
});
}
2 replies