First set of updates from the major "backendification" rewrite #1

Merged
bss merged 21 commits from backend-frameworkification into master 2019-10-11 09:00:37 -05:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit abce0262f3 - Show all commits

View File

@ -31,6 +31,6 @@ def rpc_roll_dice(request):
result_str = roller.do_roll(dice_str)
return Response({'dice': dice_str, 'result': result_str})
except AssertionError as aex:
return Response({'detail': f"Could not roll dice: {aex}"}, status=400)
return Response({'detail': f"Could not roll dice: {aex}", 'dice': dice_str}, status=400)
except ValueError:
return Response({'detail': f"Could not parse requested dice '{dice_str}'."}, status=400)
return Response({'detail': f"Could not parse requested dice '{dice_str}'.", 'dice': dice_str}, status=400)