Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error handling and fix file uploading. #198

Merged
merged 1 commit into from
Feb 22, 2016
Merged

Conversation

dignifiedquire
Copy link
Member

Closes #153

@@ -1,10 +1,7 @@
import API from 'ipfs-api'
import notifier from 'node-notifier'
import {join} from 'path'
import {getIPFS, logger} from './../init'
Copy link
Member

Choose a reason for hiding this comment

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

this works in Node.js due to transpilation, correct? Do we want to use two module systems in the same file? I'ld rather prefer to keep using CJS on Node.js side and ES6 for browser/ui side.

Copy link
Member Author

Choose a reason for hiding this comment

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

The whole code base already uses es6 modules as everything gets transpiled anyway. If they are different repos we can have that differentiation, but in this case I'd rather have consistency in the repo.

(Also this is not changed in this PR)

Copy link
Member

Choose a reason for hiding this comment

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

noted, why have const clipboard = require('clipboard') (line 8) then? 👍 for consistency

Copy link
Member Author

Choose a reason for hiding this comment

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

hmmm no idea why that's there oO

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Also adds better error handling and wraps
multiple file uploads into a directory now.

Closes #153
dignifiedquire added a commit that referenced this pull request Feb 22, 2016
Better error handling and fix file uploading.
@dignifiedquire dignifiedquire merged commit c79c368 into master Feb 22, 2016
@dignifiedquire dignifiedquire deleted the improveme branch February 22, 2016 12:16
@daviddias
Copy link
Member

LGTM.

There is no tests still, makes contributions really hard to do.

@dignifiedquire
Copy link
Member Author

There is no tests still, makes contributions really hard to do.

well you could write some :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants