Skip to content

Commit

Permalink
feature(edit) when error: emmit error.message
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Nov 21, 2014
1 parent db5c4ce commit f8dc961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
var msg, baseName;

if (error) {
socket.emit('err', error);
socket.emit('err', error.message);
} else {
baseName = path.basename(name),
msg = CloudFunc.formatMsg('patch', baseName);
Expand Down

0 comments on commit f8dc961

Please sign in to comment.