Great use of error first callbacks with the fs module so that errors will give a 500 status.
You could improve this even further by making the message that is sent back more descriptive - how could you describe each error so that the user (or developer debugging the app) can see exactly what went wrong?
Great use of error first callbacks with the fs module so that errors will give a 500 status.
You could improve this even further by making the message that is sent back more descriptive - how could you describe each error so that the user (or developer debugging the app) can see exactly what went wrong?