Skip to content

Commit

Permalink
fix bug in Add Apartment not showing default date. Fixed bug in Add A…
Browse files Browse the repository at this point in the history
…partment when selecting tags. Added loading message when submmiting new apartment. Fixed upload Images components showing error when adding new image, Modified error handling by rote POST /apartments. #164 #167 #168 #169 #170 #171 #172
  • Loading branch information
alonttal committed Jan 18, 2018
1 parent 5e6e33c commit 26d162f
Show file tree
Hide file tree
Showing 12 changed files with 538 additions and 456 deletions.
10 changes: 7 additions & 3 deletions server/errors.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

const ERR_INVALID_CRADENTIALS = 101010;
const ERR_EMAIL_IN_USE = 11000;
const ERR_INVALID_CRADENTIALS = 101010;
const ERR_EMAIL_IN_USE = 110000;
const INVALID_LOCATION = 110100;
const UNKNOWN_ERROR = 111111;

const Error = function (code, message) {
return {
Expand All @@ -11,5 +13,7 @@ const Error = function (code, message) {

module.exports = {
invalidCradentials: Error(ERR_INVALID_CRADENTIALS, 'Invalid cradentials.'),
emailInUse: Error(ERR_EMAIL_IN_USE, 'Email already in use.')
emailInUse: Error(ERR_EMAIL_IN_USE, 'Email already in use.'),
invalidLocation: Error(INVALID_LOCATION, 'Couldn\'t find location.'),
unknownError: Error(UNKNOWN_ERROR, 'Uknown error occured.')
};
Loading

0 comments on commit 26d162f

Please sign in to comment.