localmed / api-mock

Creates a mock server based on an API Blueprint
MIT License
496 stars 58 forks source link

Error on launch [object Object] #54

Closed matthieu526 closed 7 years ago

matthieu526 commented 8 years ago

Hi,

When I launch api-mock, I have the following error :

screen shot 2016-10-21 at 14 03 03

Do you have any idea about what it means ? Thanks in advance.

rossettewuyu commented 7 years ago

the carriage return key is different on windows and linux. it is "\n\r" on windows and which is "\n" on linux. try format your *.md file for the different system. if you edit the .md file on windows and run api-mock on linux, run commad in shell like: sed -e "s/.$//" your.md >> new.md on the other side, you edit the .md file on linux and run api-mock on windows, run command is shell like: sed -e "s/$/\r/" your.md >> new.md

matthieu526 commented 7 years ago

In fact, the problem was a between spaces and tabulations. It seems that it does not support "\t".