Open maxmechanic opened 10 years ago
Looks like you might need to character escape... React is translating stuff inappropriately.
Sample error in Terminal:
Sample error in Commonplace (note the data-reactid
):
Also, are we able to tell where the error's coming from? Might be nice to prepend errors with phrases like "Error building Jekyll", "Couldn't create post", etc.
I've parsed out file-creation errors from Jekyll errors. Right now it's still just printing into <pre>
tags but we should talk about the best way to display this info. All the plumbing is in place for what you're talking about, though.
Errors should be appropriately formatted/stringified now.
Don't mean to be a stickler, but how can I test this? Can't seem to generate an error.
Try a way-too-long title to check file creation limits. Putting a colon in the title should make Jekyll angry.
Launcher now has a span (element/class/etc all totally changeable) for errors to drop into if the server returns any or if there's a problem with making the AJAX request. Works as a nice pattern for any type of flash message.
Right now it'll get filled with verbatim errors from Node for post file creation and Jekyll build errors. Might be good to delete the newly-created post file if it's causing build failure.
Also fixed an issue where seconds in the date property of YAML front-matter were causing errors.