Browse files

don't report api failure if rocks row already exists

  • Loading branch information...
1 parent 72c3100 commit 6433d216e44f1be9f7caacaba2f570bb01293eb6 @leafo committed Jul 19, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 helpers/uploaders.moon
View
4 helpers/uploaders.moon
@@ -120,9 +120,11 @@ do_rock_upload = (user, mod, version, filename, rock_content) ->
unless out == 200
return nil, "Failed to upload rock"
- with Rocks\create version, rock_info.arch, key
+ if Rocks\create version, rock_info.arch, key
mod\purge_manifests!
+ true
+
handle_rock_upload = =>
assert @module, "need module"
assert @version, "need version"

0 comments on commit 6433d21

Please sign in to comment.