liberty-x / twitter

We decided to make twitter EVEN better
4 stars 1 forks source link

Server.js handler #33

Open mk4111 opened 8 years ago

mk4111 commented 8 years ago

(I might be wrong, so I'm sorry in advance but....)

On your elseif statement for catching file-extension names on your url, (the bit starting https://github.com/liberty-x/twitter/blob/master/server.js#L21), I don't think you throw an error if the filename doesn't exist... Would it be a good idea to implement a catch for such an error?

hdrdavies commented 8 years ago

Yeah you're right.....

Could you explain how you would go about doing this? :frog::frog: