Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f27b1f48

Von Sven Schöling vor mehr als 3 Jahren hinzugefügt

  • ID f27b1f4819fac91b1dce3a7bf25945f479b7b908
  • Vorgänger c591d7cc
  • Nachfolger 7230b956

Inventory Helper: Fehlerhaften Aufruf mit croak abbrechen statt mit Excception

Unterschiede anzeigen:

SL/Helper/Inventory.pm
152 152
sub allocate {
153 153
  my (%params) = @_;
154 154

  
155
  die SL::X::Inventory::Allocation->new(
156
    error => 'allocate needs a part',
157
    msg => t8("Method allocate needs the parameter 'part'"),
158
  ) unless $params{part};
159
  die SL::X::Inventory::Allocation->new(
160
    error => 'allocate needs a qty',
161
    msg => t8("Method allocate needs the parameter 'qty'"),
162
  ) unless $params{qty};
155
  croak('allocate needs a qty') unless $params{part};
156
  croak('allocate needs a qty') unless $params{qty};
163 157

  
164 158
  my $part = $params{part};
165 159
  my $qty  = $params{qty};

Auch abrufbar als: Unified diff