mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Now calling toString on exceptions when constructing RunnerException.
This commit is contained in:
@ -63,7 +63,7 @@ public class Sizer implements MessageConsumer {
|
|||||||
} catch (InterruptedException intExc) { }
|
} catch (InterruptedException intExc) { }
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
exception = new RunnerException(e);
|
exception = new RunnerException(e.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exception != null)
|
if (exception != null)
|
||||||
@ -86,9 +86,9 @@ public class Sizer implements MessageConsumer {
|
|||||||
st.nextToken();
|
st.nextToken();
|
||||||
size = (new Integer(st.nextToken().trim())).longValue();
|
size = (new Integer(st.nextToken().trim())).longValue();
|
||||||
} catch (NoSuchElementException e) {
|
} catch (NoSuchElementException e) {
|
||||||
exception = new RunnerException(e);
|
exception = new RunnerException(e.toString());
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
exception = new RunnerException(e);
|
exception = new RunnerException(e.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user