handling error
Merge https://github.com/bonakid/inertiajsframework