Friendly errors

My first attempt at creating the friendly error. It doesn't work though.