Display better errors in next.js using this approach #shorts