Skip to content

Commit

Permalink
throw error if json format error
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLn committed May 7, 2014
1 parent c75b2dd commit 1641d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qiniu.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ function QiniuJsSDK() {
errorObj = that.parseJSON(errorObj.error);
errorText = errorObj.error || 'file exists';
} catch (e) {
// console.log(e);
throw ('invalid json format');
}
break;
case 631:
Expand Down
2 changes: 1 addition & 1 deletion src/qiniu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1641d1f

Please sign in to comment.