Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

fix(examples): Ensure started prior to adding file #912

Merged
merged 1 commit into from
Jul 15, 2017

Conversation

bitspill
Copy link
Contributor

No description provided.

@@ -114,6 +114,10 @@ function onDrop (event) {
onDragExit()
$errors.className = 'hidden'
event.preventDefault()
if (!node) {
onError("IPFS must be started before files can be added")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing a linting error, could you change to single quotes, please?

https://travis-ci.org/ipfs/js-ipfs/jobs/253836140#L4278

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@daviddias daviddias merged commit 69162e8 into ipfs:master Jul 15, 2017
@daviddias
Copy link
Member

thanks @bitspill :)

MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this pull request May 22, 2020
Better error reporting by detecting `Content-Type` of the response and not attempting to parse JSON for non-`application/json` responses.

resolves ipfs#912
resolves ipfs#1000
closes ipfs#1001

License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants